about summary refs log tree commit diff
path: root/app/lib/activitypub
AgeCommit message (Collapse)Author
2019-09-02use same matching rules for `skip_download?` as ↵multiple creatures
`MediaAttachment.instance.blocked?`
2019-08-26don't drop posts with invisible participants if they explicitly mention a ↵multiple creatures
local user
2019-08-26don't process incoming media or polls until sure the post is going to be ↵multiple creatures
saved in the first place
2019-08-26do not limit by `known` when `reject_unknown` is not setmultiple creatures
2019-08-25avoid processing incoming posts that have invisible participantsmultiple creatures
2019-08-08fedi privacy - reject incoming out-of-scope posts addressed to ↵multiple creatures
private/unresolvable accounts & not addressed to any local users
2019-08-08add new `reject unknown` policy option to prevent spam & harassment from ↵multiple creatures
large/undermoderated servers
2019-08-03respect 'don't @ me' requestsmultiple creatures
2019-07-28big tails never fail!multiple creatures
2019-07-24don't include `reject_payload!` auto-rejections in logger because that leaks ↵multiple creatures
objects sent to the server that weren't supposed to be
2019-07-24don't append account urimultiple creatures
2019-07-24moderation logger - add auto-reject reasonsmultiple creatures
2019-07-24add icons to auto-reject logsmultiple creatures
2019-07-24manually patch `ActivityPub::TagManager` back to version this codebase ↵multiple creatures
should be using
2019-07-24transparancy - log use of admin related method calls & activitypub ↵multiple creatures
auto-rejections to a logger account
2019-07-24remove instance actor code from tag manager for nowmultiple creatures
2019-07-24revert the current unfinished chat implementationmultiple creatures
2019-07-22move autoreject check to own module & check for reject before pulling resourcesmultiple creatures
2019-07-22allow autorejecting incoming ap activities by `id`, `@context`, and domain + ↵multiple creatures
autoject suspended domains & their subdomains
2019-07-19keep `locked` badge for approves-followers + add `frozen` badge for ↵multiple creatures
admin-locked accts, also federate `frozen` state
2019-07-18federate account locked status (`mp:locked`)multiple creatures
2019-07-15stop breaking things with missing commasmultiple creatures
2019-07-15drop incoming twitter retweetsmultiple creatures
2019-07-15add `supports_chat` property, rename `adults_only` to `adult_content`, ↵multiple creatures
federate the kobolds~
2019-07-15local visibility scope, chat scope+tags, unlisted tagsmultiple creatures
2019-05-21handle tags with the old `:` scope delimiter but translate those to `.`multiple creatures
2019-05-21handle importing posts from json dumpsmultiple creatures
2019-05-21Moderation: add `force sensitive` and `force unlisted` actions. Accounts: ↵multiple creatures
add federatable `adult content` tag. Handle from remote accounts as well.
2019-05-21Remove automatic language detection.multiple creatures
2019-05-21Drop OStatus support. Fix some of the Rspec tests.multiple creatures
2019-05-21Implement scoped tags; use `local:` and `self:` scopes for community and ↵multiple creatures
personal tags, respectively.
2019-05-21Handle up to 6 attachments per roar.multiple creatures
2019-05-09Prevent silenced local users from notifying remote users not following them ↵ThibG
(#10575) * Prevent silenced local users from notifying remote users not following them This is an attempt to extend the local restrictions of silenced users to the federation. * Add tests * Add tests for making sure private status don't get sent over OStatus
2019-04-27Add blurhash (#10630)Eugen Rochko
* Add blurhash * Use fallback color for spoiler when blurhash missing * Federate the blurhash and accept it as long as it's at most 5x5 * Display unknown media attachments as blurhash placeholders * Improve style of embed actions and spoiler button * Change blurhash resolution from 3x3 to 4x4 * Improve dependency definitions * Fix code style issues
2019-03-30Add ActivityPub representation for identity proofs (#10414)Eugen Rochko
* Add ActivityPub representation for identity proofs * Add tests
2019-03-28Rename :poll to :preloadable_poll and :owned_poll to :poll on Status (#10401)Eugen Rochko
Also, fix some n+1 queries Resolve #10365
2019-03-27Fix alternative relay support regression (#10398)Eugen Rochko
Fix #10324
2019-03-27Remove unused ActivityPub `@context` values depending on response (#10378)Eugen Rochko
Fix #8078
2019-03-17Set and store report URIs (#10303)ThibG
Fixes #10271
2019-03-12Fix poll update handler calling method was that was not available (#10246)Eugen Rochko
* Fix poll update handler calling method was that was not available Fix regression from #10209 * Refactor VoteService * Refactor ActivityPub::DistributePollUpdateWorker and optimize it * Fix typo * Fix typo
2019-03-11Support pushing and receiving updates to poll tallies (#10209)ThibG
* Process incoming poll tallies update * Send Update on poll vote * Do not send Updates for a poll more often than once every 3 minutes * Include voters in people to notify of results update * Schedule closing poll worker on poll creation * Add new notification type for ending polls * Add front-end support for ended poll notifications * Fix UpdatePollSerializer * Fix Updates not being triggered by local votes * Fix tests failure * Fix web push notifications for closing polls * Minor cleanup * Notify voters of both remote and local polls when those close * Fix delivery of poll updates to mentioned accounts and voters
2019-03-08Do not allow adding votes to expired polls (#10214)ThibG
* Do not allow adding votes to expired polls * Only validate expires_at on create
2019-03-07Avoid unnecessarily fetching the replies collection when it is empty (#10201)ThibG
2019-03-04Store remote votes URI (#10158)ThibG
* Store remote votes URI * Add spec for accepting remote votes * Make poll vote id generation work the same way as follows
2019-03-04Add tests for ActivityPub poll processing (#10143)Eugen Rochko
2019-03-04Fix remote poll expiration time (#10144)Eugen Rochko
2019-03-03Add polls (#10111)Eugen Rochko
* Add polls Fix #1629 * Add tests * Fixes * Change API for creating polls * Use name instead of content for votes * Remove poll validation for remote polls * Add polls to public pages * When updating the poll, update options just in case they were changed * Fix public pages showing both poll and other media
2019-02-28Give the `replies` collection an identifier and enable pagination (#10128)ThibG
2019-02-28Improved remote thread fetching (#10106)ThibG
* Fetch up to 5 replies when discovering a new remote status This is used for resolving threads downwards. The originating server must add a “replies” attributes with such replies for it to be useful. * Add some tests for ActivityPub::FetchRepliesWorker * Add specs for ActivityPub::FetchRepliesService * Serialize up to 5 public self-replies for ActivityPub notes * Add specs for ActivityPub::NoteSerializer * Move exponential backoff logic to a worker concern * Fetch first page of paginated collections when fetching thread replies * Add specs for paginated collections in replies * Move Note replies serialization to a first CollectionPage The collection isn't actually paginable yet as it has no id nor a `next` field. This may come in another PR. * Use pluck(:uri) instead of map(&:uri) to improve performances * Fix fetching replies when they are in a CollectionPage
2019-02-27Fix mention processing for unknwon accounts on incoming ActivityPub Notes ↵ThibG
(#10125) `::FetchRemoteAccountService` is not `ActivityPub::FetchRemoteAccountService`, its second argument is the pre-fetched body. Passing `id: false` actually passed a `Hash` as the prefetched body, instead of properly resolving unknown remote accounts.