Commit Graph

1894 Commits (67038ae15e1f4a0b136388416af23547d82cbd0d)

Author SHA1 Message Date
kaniini c9c1f9dee2 Merge branch 'bugfix/ostatus-as2-reflection' into 'develop'
6 years ago
kaniini 7daa102fa4 Merge branch 'bugfix/local-jsonld-context' into 'develop'
6 years ago
William Pitcock 4f87b8362b endpoint: move CORSPlug in front of Plug.Static
6 years ago
William Pitcock 03a9990baf endpoint: fix formatting
6 years ago
William Pitcock e6d246882d federator: don't federate anything other than Note objects to OStatus
6 years ago
William Pitcock e4971553c7 activitypub: utils: use same object type list for mention extraction as insertion
6 years ago
William Pitcock b3c360ce2c notification: add fallback get_notified_from_activity()
6 years ago
William Pitcock b9871e7e5a activitypub: utils: wrap Note objects in a Create when extracting mentions
6 years ago
William Pitcock 8c805ada32 user: remove obsolete User.get_notified_from_activity().
6 years ago
William Pitcock 6cadfcb21e activitypub: utils: switch to using new Notification.get_notified_from_activity().
6 years ago
William Pitcock cdfdd77e30 notification: implement new Notification.get_notified_from_activity()
6 years ago
William Pitcock d26cd6c1bf user: factor out user set fetching from User.get_notified_from_activity()
6 years ago
William Pitcock 81d6ca1783 user: implement AS2 mention extraction + unify Announce handling
6 years ago
William Pitcock 6b4064fa5d activitypub: transmogrifier: unify mention extraction
6 years ago
William Pitcock 0a2c1a3419 user: add optional local_only param to get_notified_from_activity()
6 years ago
Haelwenn (lanodan) Monnier 2fab32ab61
Pleroma.Web.Endpoint: Whitelist schemas directory
6 years ago
Haelwenn (lanodan) Monnier 934125695d
Move /litepub-1.0.jsonld to /schemas/litepub-0.1.jsonld
6 years ago
William Pitcock 4e93d6ae14 common api: utils: flip to/cc for mentions
6 years ago
William Pitcock 3e33479c05 activitypub: transmogrifier: only consider `to` users as mention targets
6 years ago
William Pitcock 144dc048b8 user: only consider `to` recipients as mention targets
6 years ago
Haelwenn (lanodan) Monnier abcacec97d
Pleroma.Web.ActivityPub.Utils: Use locally-served JSON-LD Litepub context instead of Github-hosted one
6 years ago
William Pitcock da16ada424 utils: use litepub @context instead of that huge mess
6 years ago
William Pitcock f733470037 user view: unify a @context entry that was missed
6 years ago
lambda 59cf7cf235 Merge branch 'small-jsonld-refactor' into 'develop'
6 years ago
lain 34bd411781 Unify json ld header handling.
6 years ago
lain 3b02fd9fb7 Small refactor.
6 years ago
kaniini 4d627a5117 Merge branch 'feature/qvitter-notifications-dismiss' into 'develop'
6 years ago
kaniini b451a92d78 Merge branch 'runtime-config' into 'develop'
6 years ago
href e42f2efae4
/api/v1/accounts/relationships Return an empty array if no id in params
6 years ago
href 9070588493
Runtime config: MRF changes
6 years ago
William Pitcock b2105a3131 twitterapi: add notification read endpoint
6 years ago
William Pitcock f16c2e0b1b notification: add Notification.set_read_up_to()
6 years ago
href 5bb88fd174
Runtime configuration
6 years ago
kaniini a68c18f0ad Merge branch 'unify-mastodon-oauth' into 'develop'
6 years ago
kaniini 0f3e78addb Merge branch 'runtime-router' into 'develop'
6 years ago
lain a8f1e30cb8 Formatting.
6 years ago
href 7d328c658d
Small wrapper module around Application.get_env/put_env
6 years ago
lain 4f640c43ed Unify Mastodon Login with OAuth login.
6 years ago
href 2bc924ba45
Get rid of Pleroma.Config in favor of Application
6 years ago
href 013f7ba8c1
Add federating plug & public tests
6 years ago
href 83911b1443
Fix wrong return when finmoji is disabled
6 years ago
href fd0e7d18d9
handle_continue is OTP21+
6 years ago
href 6fe23c5458
Runtime configured router
6 years ago
href d096bc17bf
revert endpoint position in supervision tree
6 years ago
href 763fc7b44f
Runtime configured emojis
6 years ago
kaniini 007f1c73b1 Merge branch 'feature/cors-again' into 'develop'
6 years ago
Haelwenn (lanodan) Monnier 3e50bb667f
Pleroma.Web.MastodonAPI.StatusView: Content isn’t nullable
6 years ago
lain e954cfcc2c Add CORSPlug to make web-based OAuth easier.
6 years ago
lambda 4bcdbb12a4 Merge branch 'fix_hashtag_search' into 'develop'
6 years ago
Mark Felder 0cca7edbe0 Fix hashtag search
6 years ago
lain 45ebc8dd9a Check for empty string in_reply_to ids.
6 years ago
Haelwenn (lanodan) Monnier 3c7d4ff271
Pleroma.Web.TwitterAPI.ActivityView: Harden TwitterAPI against remnant of prismo
6 years ago
William Pitcock 24ba08de13 twitter api: add support for rendering Page objects
6 years ago
William Pitcock 4d8f076125 mastodon api: add support for rendering Page objects
6 years ago
William Pitcock 9f03b5c4f7 activitypub: transmogrifier: add support for Page objects
6 years ago
Lee Starnes 585b29337c Ensure filters have a filter_id
6 years ago
kaniini eba9a62024 Merge branch 'feature/relay-tests' into 'develop'
6 years ago
Haelwenn 40676d7683 Merge branch 'bugfix/prismo.news_article_url' into 'develop'
6 years ago
lain 1e9ced5af4 Test Relay, switch to runtime configuration.
6 years ago
lain e6ec01afb6 Start configuration manager.
6 years ago
lain 9b77030d3c Add basic configuration management module.
6 years ago
Haelwenn (lanodan) Monnier b2da5262ea
Pleroma.Web.ActivityPub.Transmogrifier: fix_url when not a string/empty
6 years ago
Haelwenn (lanodan) Monnier 755f166406
Pleroma.Web.MastodonAPI.StatusView: Do not fail when URL isn’t a string
6 years ago
William Pitcock 2b3a40d038 object: split object_cache from user_cache
6 years ago
William Pitcock f584a603f9 user: make User.delete() return data consistent with Object.delete()
6 years ago
William Pitcock 2c3bfd7f76 user: delete user_info data in User.invalidate_cache()
6 years ago
William Pitcock 10f3958468 object: return the deleted object as well
6 years ago
William Pitcock 2bf358d7b4 activitypub: use Object.delete() instead of mutating the database and cache directly
6 years ago
William Pitcock c4e43da63e object: add safe object deletion function
6 years ago
Haelwenn (lanodan) Monnier 558e6a84d6
[Pleroma.Web.CommonAPI]: Delete post cache entry when it’s deleted
6 years ago
William Pitcock 47f76bf4b1 common api: allow self-liking objects
6 years ago
kaniini 5fea3d9eca Merge branch 'allow-abbr' into 'develop'
6 years ago
scarlett 795634c90f Allow use of the `abbr` HTML tag.
6 years ago
scarlett b92e38d2d4 Add user reactivation task.
6 years ago
kaniini a880e0a527 Merge branch 'feature/upload-limits' into 'develop'
6 years ago
William Pitcock 676c97b8c7 nodeinfo: expose configured upload limits
6 years ago
William Pitcock 36825932eb s3 uploader: add new feature to force public attachment URIs to go through media proxy
6 years ago
William Pitcock f407831120 common api: prefer formatting attachments using the attachment's name instead of URI
6 years ago
William Pitcock 784b3a615d utils: fix another possible leak with private S3 backends using mediaproxy
6 years ago
William Pitcock 181f3bb56a mastodon api: enforce upload limits for avatars and banners
6 years ago
William Pitcock e12489e2fe twitter api: enforce upload limits for avatars, banners and backgrounds
6 years ago
William Pitcock 167d3789a5 activitypub: upload: pass through an upload limit if one is provided
6 years ago
William Pitcock fa483cd7c2 upload: add new optional argument designating an upload size limit
6 years ago
William Pitcock 5c6ec2d9fc twitter/mastodon api: always use mediaproxy URLs in attachments
6 years ago
William Pitcock 72ea54de6e activitypub: fix possible false positives with broken thread filtering
6 years ago
kaniini 44762daf51 Merge branch 'feature/broken-thread-filtering' into 'develop'
6 years ago
William Pitcock c302c619b9 http: fix mediaproxy
6 years ago
William Pitcock 26eb11c172 activitypub: add support for filtering broken threads out of timelines
6 years ago
William Pitcock 7338368ad9 http: enable keepalive / connection pooling (closes #336)
6 years ago
William Pitcock f6cb963df2 activitypub utils: fix recipient check when the message is unaddressed (mastodon)
6 years ago
Haelwenn (lanodan) Monnier 7906dfe5a0
[Pleroma.Web.Nodeinfo.NodeinfoController]: Simplify features strings
6 years ago
Haelwenn (lanodan) Monnier 57330dd91b
[Pleroma.Web.Nodeinfo.NodeinfoController]: Have a list of supported features
6 years ago
kaniini 9fe9c09883 Merge branch 'finmoji-optional' into 'develop'
6 years ago
scarlett ae5beb7b64 Make finmoji optional
6 years ago
William Pitcock ce70eb8c00 activitypub utils: fix user splicing
6 years ago
William Pitcock 2f1f1a4f30 activitypub: splice users into recipient lists when they receive messages at their personal inbox
6 years ago
kaniini 9e9b1bd5ea Merge branch 'bugfix/ap-uri-user-search' into 'develop'
6 years ago
Haelwenn 79b1e4465f Merge branch 'bugfix/233-handle-missing-StatusView' into 'develop'
6 years ago
William Pitcock 5383887bd4 transmogrifier: do not try to contain origin of something which doesn't have one
6 years ago
Haelwenn (lanodan) Monnier b386888a0e
[Pleroma.Web.MastodonAPI.MastodonAPIController]: fallback for try_render/4
6 years ago
William Pitcock 1ed25c963a twitterapi: activity view: add the other in_reply_to fields
6 years ago
William Pitcock 1b480e3514 user: add helper for fetching profile url (which may be different than ap id)
6 years ago
Haelwenn (lanodan) Monnier b112112c11
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Wrap around render/4
6 years ago
Haelwenn (lanodan) Monnier b0a940d5a2
[Pleroma.Web.MastodonAPI.StatusView]: Remove unused arguments
6 years ago
Haelwenn (lanodan) Monnier 2da0ffeb28
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex: Output an error when render(status.json) gives a nil
6 years ago
Haelwenn (lanodan) Monnier 0c10be8731
[Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json
6 years ago
Haelwenn (lanodan) Monnier 3b0e9287a5
[Pleroma.Web.MastodonAPI.StatusView]: Return nil as fallback for missing views
6 years ago
William Pitcock fee43ae5e7 twitterapi: activity view: implement in_reply_to_screen_name using the new graph walking helper
6 years ago
William Pitcock f3f736afc4 activity: add helper to fetch an activity's parent
6 years ago
kaniini 945ce9910d Merge branch 'bugfix/html-scrub-comments' into 'develop'
6 years ago
William Pitcock 8613db0e3b html: ensure comments are correctly scrubbed
6 years ago
scarlett a253c1466e New frontend options
6 years ago
AkiraFukushima a249cbf187 Add a test for List.get_lists_account_belongs
6 years ago
AkiraFukushima e8c698af41 Add an endpoint /api/v1/accounts/:id/lists to get lists to which account belongs
6 years ago
kaniini ad3181895c Merge branch 'bugfix/html-scrub-schemes' into 'develop'
6 years ago
William Pitcock 595d855f0e html scrubbing policies: restrict img tags to http/https only for mediaproxy compatibility
6 years ago
Haelwenn (lanodan) Monnier 2154c5dcd8
lib/pleroma/html.ex: Use macros for valid_schemes, change config for schemes
6 years ago
William Pitcock 582dbe5c8d formatter: fix matching osada users
6 years ago
scarlett 7562912f6a Use maybe_direct_follow for follow imports
6 years ago
Haelwenn (lanodan) Monnier d7654c77de
lib/pleroma/html.ex: Use a function as a variable (broken for some reason)
6 years ago
Haelwenn (lanodan) Monnier 50e0a9ae56
lib/pleroma/html.ex: Fix scheme lists
6 years ago
William Pitcock 30efa86c05 common api: enable tag linking in markdown mode
6 years ago
Haelwenn (lanodan) Monnier eacab0fb05
Delete Tokens and Authorizations on password change
6 years ago
William Pitcock 51eaece3ea user: break out local cases for maybe_direct_follow
6 years ago
William Pitcock 2c29329d39 user: local users are always AP-enabled (closes #316)
6 years ago
William Pitcock 111841ad34 common api: take the combination of the subject and content for length limit enforcement
6 years ago
William Pitcock 08d5ad71b6 nodeinfo: allow opting out of MRF transparency
6 years ago
William Pitcock 7b3fff9af8 {mastodon api, twitter api}: make the follow handshake timeout configurable
6 years ago
William Pitcock 7f530f6f80 mastodon api: relationship view: better handle no pre-existing follow activity
6 years ago
William Pitcock e69faf550c user: add wait_and_refresh() for async three-way handshake case
6 years ago
William Pitcock 3e751496e3 mastodon api: account view: fetch follow state and use it to populate `requested` field
6 years ago
William Pitcock a71b822013 activitypub: always track following state for async reasons
6 years ago
William Pitcock 8ce217776d activitypub transmogrifier: better manage follow state
6 years ago
William Pitcock 4f7a468659 user: only pre-create follow relationships on OStatus
6 years ago
William Pitcock bd76d9cee6 nodeinfo: add accepted post formats to metadata
6 years ago
William Pitcock 285ac80c36 config: allow for accepted post formats to be configured
6 years ago
William Pitcock 52b05137c5 formatter: use Pleroma.HTML module instead of HtmlSanitizeEx directly
6 years ago
William Pitcock 16307da311 twitterapi: frontend config: add formattingOptionsEnabled
6 years ago
William Pitcock b1be9415ef Revert "Merge branch 'revert-a26d5e6b' into 'develop'"
6 years ago
Haelwenn (lanodan) Monnier f2efc8dcfb
nodeinfo_controller: Fix JSON rendering
6 years ago
Haelwenn (lanodan) Monnier 28651df478
MRF Transparency
6 years ago
Haelwenn (lanodan) Monnier 56d31db130
Pleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one
6 years ago
Haelwenn (lanodan) Monnier 8226953f1d
[Pleroma.Web.Nodeinfo.NodeinfoController]: Transparency on MRF Simple
6 years ago
kaniini 4f03bb2299 Merge branch 'bugfix/fix-mrf-reject-match' into 'develop'
6 years ago
William Pitcock 4db1bc2c0e activitypub: fix error condition match
6 years ago
Haelwenn (lanodan) Monnier a3cffd3566
formatter: Stop using phoenix HTML and format it ourselves
6 years ago
Haelwenn 34b6d444d6 Merge branch 'feature/twitter_api/fields' into 'develop'
6 years ago
Haelwenn (lanodan) Monnier 82b57ebad1
[Pleroma.Web.TwitterAPI.UserView]: Add mastodon-fields in "fields"
6 years ago
William Pitcock 707077edde activitypub: don't fall back to OStatus fetching when MRF rejects an object
6 years ago
William Pitcock 5c312ad677 activitypub inbox: only accept unsigned/invalid-signature relayed creates, nothing else
6 years ago
Haelwenn (lanodan) Monnier c739737998
transmogrifier: get_actor called without casting attributedTo in actor and actor is nil
6 years ago
Haelwenn (lanodan) Monnier 9446b02bdf
transmogrifier: Just make attachement maps into a list and reroll
6 years ago
Haelwenn (lanodan) Monnier e53da692fb
transmogrifier: Use the correct variable and prefer inspect in case of a bad type being passed on
6 years ago
William Pitcock d830a243a3
transmogrifier: more robustly handle dereferencing pointer URIs
6 years ago
Haelwenn (lanodan) Monnier 4c3a80de96
transmogrifier: Use oneliners when applicable
6 years ago
William Pitcock ed8dfa3029
transmogrifier: reformat `cond` block by hand
6 years ago
Haelwenn (lanodan) Monnier eebe33e86a
transmogrifier: Add support for array-less hashtags, add broken announce, harden get_actor
6 years ago
Haelwenn (lanodan) Monnier f3291acc91
transmogrifier: pro-actively add support for Hashtag without array in tag
6 years ago
Haelwenn (lanodan) Monnier 22927f3a34
transmogrifier: Use a cond, add proactive support for arrays
6 years ago
Haelwenn (lanodan) Monnier 0aac72f1d3
[Pleroma.Web.ActivityPub.Transmogrifier]: quick fix when tag is a Map
6 years ago
Haelwenn (lanodan) Monnier 28e8a8ab36
[Pleroma.Web.ActivityPub.Transmogrifier]: fix emoji in tag when it’s not in a array [kroeg]
6 years ago
Haelwenn (lanodan) Monnier f8a0cb9c0b
[Pleroma.Web.ActivityPub.Transmogrifier]: fix when attachment contain is just a Map [kroeg]
6 years ago
Haelwenn (lanodan) Monnier a4abb124ea
[Pleroma.Web.ActivityPub.Transmogrifier]: Fix when inReplyTo is a inlined post [kroeg]
6 years ago
Haelwenn (lanodan) Monnier 523757be52
[Pleroma.Web.ActivityPub.ActivityPub]: Harden getting endpoints [kroeg]
6 years ago
Martin Kühl f77ec96707 Uploaders.S3: Replace unsafe characters in object key
6 years ago
William Pitcock 7f0e291483 html: twittertext: add missing catchall scrub function
6 years ago
William Pitcock 56577d8b48 twitter api: add no_rich_text option to userview for account prefs
6 years ago
William Pitcock df00a364fb mastodon api: formatting
6 years ago
William Pitcock c2b69798dd twitter api: add support for disabling rich text
6 years ago
William Pitcock 958e085acb mastodon api: add support for user-supplied html policy
6 years ago
William Pitcock 2f5b026548 twitter api: add support for user-specified html policy
6 years ago
William Pitcock 735cdfb848 user: add User.html_filter_policy()
6 years ago
William Pitcock 8ae9424edb html: default to using normal scrub policy if provided scrub policy is nil
6 years ago
kaniini 4cb6331843 Merge branch 'feature/dynamic-user-refresh' into 'develop'
6 years ago
kaniini 0fe165165f Merge branch 'task-204-on-options-request' into 'develop'
6 years ago
William Pitcock c9f6eb9a41 user: implement dynamic refresh of profiles (gets rid of need for fix_ap_users task)
6 years ago
Haelwenn (lanodan) Monnier 40c51f118f
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Bump mastodon_api_level to 2.5.0
6 years ago
Haelwenn (lanodan) Monnier f74725df41
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Remove unused variables
6 years ago
Haelwenn (lanodan) Monnier 33a1e92584
[Pleroma.Web.Router]: Fake /api/v1/endorsements
6 years ago
Haelwenn (lanodan) Monnier a8eaecadee
[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)
6 years ago
Haelwenn (lanodan) Monnier 43d0b7bf7a
[Pleroma.Web.MastodonAPI.StatusView] add replies_count
6 years ago
William Pitcock c9585ec007 twitter api: fix mimetype fallback when attachments use a URI instead of a URL object
6 years ago
William Pitcock 0cac493fdc mastodon api: default attachment type to image if one is not present
6 years ago
Martin Kühl f4fcea5258 Revert "Mastodon API: Fake support for loading filters"
6 years ago
Dominique Feyer 9b0f2d572b Return 204 response on options request
6 years ago
William Pitcock a7d0ecdc7c html: add policy which transforms inline images to pass through the media proxy
6 years ago
William Pitcock cd13fa17fd html: allow scrubbing policies to be stackable
6 years ago
William Pitcock 342ed84446 MRF: add policy for normalizing HTML markup (local and remote) to a specific policy
6 years ago
William Pitcock 95376ac1fe html: add the ability to override the default scrub policy
6 years ago
kaniini c2650f0ffb Merge branch 'feature/html-scrub-policy' into 'develop'
6 years ago
shadowfacts 39aed5348a Add visible_in_picker to status emojis
6 years ago
William Pitcock d3248e13e3 activitypub: transmogrifier: allow profile updates from bots
6 years ago
William Pitcock e0b8c0ccba MRF: reject non-public: use pattern match to remove unnecessary if block
6 years ago
William Pitcock 88094c266d MRF: simple policy: refactor module to use guards and pattern matching
6 years ago
William Pitcock 97253df3ee MRF: simple policy: contain media removal/nsfw ops to create activities only
6 years ago
William Pitcock e82ce2a4b3 formatting
6 years ago
William Pitcock 358f88e10a html: allow inline images by default (because of custom emoji)
6 years ago
William Pitcock 40e2f6e500 html: add default scrubbing profile and configuration knobs
6 years ago
William Pitcock ac486fc59b everywhere: use Pleroma.HTML module instead of HtmlSanitizeEx directly
6 years ago
William Pitcock 255f46d7ab html: new module providing a configurable markup scrubbing policy
6 years ago