akkoma
6 years agouser: break out local cases for maybe_direct_follow
William Pitcock [Thu, 11 Oct 2018 10:49:54 +0000 (10:49 +0000)]
user: break out local cases for maybe_direct_follow

6 years agotest: add regression test for #316
William Pitcock [Thu, 11 Oct 2018 10:35:32 +0000 (10:35 +0000)]
test: add regression test for #316

6 years agouser: local users are always AP-enabled (closes #316)
William Pitcock [Thu, 11 Oct 2018 10:35:11 +0000 (10:35 +0000)]
user: local users are always AP-enabled (closes #316)

6 years agoMerge branch 'bugfix/length-enforce-subjects' into 'develop'
kaniini [Wed, 10 Oct 2018 08:00:23 +0000 (08:00 +0000)]
Merge branch 'bugfix/length-enforce-subjects' into 'develop'

common api: take the combination of the subject and content for length limit enforcement

Closes #315

See merge request pleroma/pleroma!371

6 years agocommon api: take the combination of the subject and content for length limit enforcement
William Pitcock [Wed, 10 Oct 2018 07:53:20 +0000 (07:53 +0000)]
common api: take the combination of the subject and content for length limit enforcement

closes #315

6 years agoMerge branch 'feature/mrf-transparency-opt-out' into 'develop'
Haelwenn [Sun, 7 Oct 2018 01:34:16 +0000 (01:34 +0000)]
Merge branch 'feature/mrf-transparency-opt-out' into 'develop'

nodeinfo: allow opting out of MRF transparency

See merge request pleroma/pleroma!370

6 years agonodeinfo: allow opting out of MRF transparency
William Pitcock [Sun, 7 Oct 2018 01:23:38 +0000 (01:23 +0000)]
nodeinfo: allow opting out of MRF transparency

6 years agoMerge branch 'security/follow-always-async' into 'develop'
kaniini [Sun, 7 Oct 2018 01:16:05 +0000 (01:16 +0000)]
Merge branch 'security/follow-always-async' into 'develop'

AP follows must be always async (closes #306)

Closes #306

See merge request pleroma/pleroma!368

6 years agoMerge branch 'patch-2' into 'develop'
kaniini [Sun, 7 Oct 2018 01:10:12 +0000 (01:10 +0000)]
Merge branch 'patch-2' into 'develop'

Relax form-action content security policy in sample nginx config

See merge request pleroma/pleroma!364

6 years agoMerge branch 'update-pleroma-frontend' into 'develop'
kaniini [Sun, 7 Oct 2018 01:09:33 +0000 (01:09 +0000)]
Merge branch 'update-pleroma-frontend' into 'develop'

update-pleroma-frontend

See merge request pleroma/pleroma!369

6 years ago{mastodon api, twitter api}: make the follow handshake timeout configurable
William Pitcock [Sun, 7 Oct 2018 01:05:59 +0000 (01:05 +0000)]
{mastodon api, twitter api}: make the follow handshake timeout configurable

6 years agoupdate-pleroma-frontend
hakabahitoyo [Sun, 7 Oct 2018 00:58:08 +0000 (09:58 +0900)]
update-pleroma-frontend

6 years agomastodon api: relationship view: better handle no pre-existing follow activity
William Pitcock [Fri, 5 Oct 2018 23:50:13 +0000 (23:50 +0000)]
mastodon api: relationship view: better handle no pre-existing follow activity

6 years agouser: add wait_and_refresh() for async three-way handshake case
William Pitcock [Fri, 5 Oct 2018 23:40:49 +0000 (23:40 +0000)]
user: add wait_and_refresh() for async three-way handshake case

6 years agomastodon api: account view: fetch follow state and use it to populate `requested...
William Pitcock [Fri, 5 Oct 2018 23:31:49 +0000 (23:31 +0000)]
mastodon api: account view: fetch follow state and use it to populate `requested` field

6 years agoactivitypub: always track following state for async reasons
William Pitcock [Fri, 5 Oct 2018 23:31:00 +0000 (23:31 +0000)]
activitypub: always track following state for async reasons

6 years agoactivitypub transmogrifier: better manage follow state
William Pitcock [Fri, 5 Oct 2018 23:30:34 +0000 (23:30 +0000)]
activitypub transmogrifier: better manage follow state

6 years agouser: only pre-create follow relationships on OStatus
William Pitcock [Fri, 5 Oct 2018 22:53:59 +0000 (22:53 +0000)]
user: only pre-create follow relationships on OStatus

closes #306

6 years agoMerge branch 'revert-d31bbb1c' into 'develop'
kaniini [Fri, 5 Oct 2018 21:17:46 +0000 (21:17 +0000)]
Merge branch 'revert-d31bbb1c' into 'develop'

Rich Text Redo Branch

See merge request pleroma/pleroma!314

6 years agotest: update test for new html scrub policy
William Pitcock [Fri, 5 Oct 2018 21:11:22 +0000 (21:11 +0000)]
test: update test for new html scrub policy

6 years agonodeinfo: add accepted post formats to metadata
William Pitcock [Fri, 5 Oct 2018 21:05:37 +0000 (21:05 +0000)]
nodeinfo: add accepted post formats to metadata

6 years agoconfig: allow for accepted post formats to be configured
William Pitcock [Fri, 5 Oct 2018 21:02:17 +0000 (21:02 +0000)]
config: allow for accepted post formats to be configured

6 years agoformatter: use Pleroma.HTML module instead of HtmlSanitizeEx directly
William Pitcock [Sun, 9 Sep 2018 23:40:24 +0000 (23:40 +0000)]
formatter: use Pleroma.HTML module instead of HtmlSanitizeEx directly

6 years agotwitterapi: frontend config: add formattingOptionsEnabled
William Pitcock [Sun, 9 Sep 2018 12:12:31 +0000 (12:12 +0000)]
twitterapi: frontend config: add formattingOptionsEnabled

6 years agoRevert "Merge branch 'revert-a26d5e6b' into 'develop'"
William Pitcock [Sun, 2 Sep 2018 00:14:25 +0000 (00:14 +0000)]
Revert "Merge branch 'revert-a26d5e6b' into 'develop'"

This reverts commit d31bbb1cfe04ca6073a322bcf77239e7d4b79839, reversing
changes made to 340ab3cb9068d444b77213e07beb8c2c3ca128b9.

6 years agoMerge branch 'feature/nodeinfo_federation_info' into 'develop'
kaniini [Fri, 5 Oct 2018 20:41:16 +0000 (20:41 +0000)]
Merge branch 'feature/nodeinfo_federation_info' into 'develop'

Nodeinfo federation info

See merge request pleroma/pleroma!367

6 years agonodeinfo_controller: Fix JSON rendering
Haelwenn (lanodan) Monnier [Fri, 5 Oct 2018 20:32:53 +0000 (22:32 +0200)]
nodeinfo_controller: Fix JSON rendering

This is the last noedinfo difference from my own branch

6 years agoMRF Transparency
Haelwenn (lanodan) Monnier [Thu, 4 Oct 2018 11:37:17 +0000 (13:37 +0200)]
MRF Transparency

6 years agoPleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one
Haelwenn (lanodan) Monnier [Mon, 1 Oct 2018 09:51:12 +0000 (11:51 +0200)]
Pleroma.Web.Nodeinfo.NodeinfoController: Further transparency, breaks API of previous one

6 years ago[Pleroma.Web.Nodeinfo.NodeinfoController]: Transparency on MRF Simple
Haelwenn (lanodan) Monnier [Wed, 5 Sep 2018 21:06:55 +0000 (23:06 +0200)]
[Pleroma.Web.Nodeinfo.NodeinfoController]: Transparency on MRF Simple

6 years agoMerge branch 'bugfix/fix-mrf-reject-match' into 'develop'
kaniini [Sun, 30 Sep 2018 05:32:56 +0000 (05:32 +0000)]
Merge branch 'bugfix/fix-mrf-reject-match' into 'develop'

activitypub: fix error condition match

See merge request pleroma/pleroma!365

6 years agoactivitypub: fix error condition match
William Pitcock [Sun, 30 Sep 2018 05:25:28 +0000 (05:25 +0000)]
activitypub: fix error condition match

6 years agoRelax form-action content security policy
barrucadu [Fri, 28 Sep 2018 22:17:19 +0000 (22:17 +0000)]
Relax form-action content security policy

'self' only allows forms submitted to the same origin, which
breaks the "remote follow" form.  To allow remote following,
we want to allow forms to be submitted to any host.

6 years agoMerge branch 'bugfix/magnet-links' into 'develop'
Haelwenn [Fri, 28 Sep 2018 19:20:54 +0000 (19:20 +0000)]
Merge branch 'bugfix/magnet-links' into 'develop'

formatter: Stop using phoenix HTML and format it ourselves

Closes #307

See merge request pleroma/pleroma!363

6 years agoformatter: Stop using phoenix HTML and format it ourselves
Haelwenn (lanodan) Monnier [Fri, 28 Sep 2018 15:20:28 +0000 (17:20 +0200)]
formatter: Stop using phoenix HTML and format it ourselves

* Pheonix has an extra scheme whitelist conflicting with ours
* Pheonix doesn’t seems to do URL encoding, just HTML encoding

Closes: https://git.pleroma.social/pleroma/pleroma/issues/307
6 years agoMerge branch 'feature/twitter_api/fields' into 'develop'
Haelwenn [Fri, 28 Sep 2018 09:25:27 +0000 (09:25 +0000)]
Merge branch 'feature/twitter_api/fields' into 'develop'

[Pleroma.Web.TwitterAPI.UserView]: Add mastodon-fields in "fields"

See merge request pleroma/pleroma!360

6 years ago[Pleroma.Web.TwitterAPI.UserViewTest]: Add test for mastodon-fields
Haelwenn (lanodan) Monnier [Fri, 28 Sep 2018 09:17:33 +0000 (11:17 +0200)]
[Pleroma.Web.TwitterAPI.UserViewTest]: Add test for mastodon-fields

6 years ago[Pleroma.Web.TwitterAPI.UserView]: Add mastodon-fields in "fields"
Haelwenn (lanodan) Monnier [Thu, 27 Sep 2018 18:17:44 +0000 (20:17 +0200)]
[Pleroma.Web.TwitterAPI.UserView]: Add mastodon-fields in "fields"

6 years agoMerge branch 'bugfix/object-fetching-handle-mrf-reject' into 'develop'
kaniini [Fri, 28 Sep 2018 00:51:45 +0000 (00:51 +0000)]
Merge branch 'bugfix/object-fetching-handle-mrf-reject' into 'develop'

activitypub: don't fall back to OStatus fetching when MRF rejects an object

See merge request pleroma/pleroma!362

6 years agoactivitypub: don't fall back to OStatus fetching when MRF rejects an object
William Pitcock [Fri, 28 Sep 2018 00:44:15 +0000 (00:44 +0000)]
activitypub: don't fall back to OStatus fetching when MRF rejects an object

6 years agoMerge branch 'security/ap-unsigned-create' into 'develop'
kaniini [Fri, 28 Sep 2018 00:14:53 +0000 (00:14 +0000)]
Merge branch 'security/ap-unsigned-create' into 'develop'

activitypub inbox: only accept unsigned/invalid-signature relayed creates, nothing else

See merge request pleroma/pleroma!361

6 years agoactivitypub inbox: only accept unsigned/invalid-signature relayed creates, nothing...
William Pitcock [Fri, 28 Sep 2018 00:01:54 +0000 (00:01 +0000)]
activitypub inbox: only accept unsigned/invalid-signature relayed creates, nothing else

although the previous handling assumed any unsigned/invalid signature message was a Create,
lets make it more explicit

6 years agoMerge branch 'bugfix/kroeg' into 'develop'
kaniini [Thu, 27 Sep 2018 20:25:35 +0000 (20:25 +0000)]
Merge branch 'bugfix/kroeg' into 'develop'

More kroeg bugfixes

See merge request pleroma/pleroma!353

6 years agotransmogrifier: get_actor called without casting attributedTo in actor and actor...
Haelwenn (lanodan) Monnier [Thu, 27 Sep 2018 09:51:36 +0000 (11:51 +0200)]
transmogrifier: get_actor called without casting attributedTo in actor and actor is nil

6 years agotransmogrifier: Just make attachement maps into a list and reroll
Haelwenn (lanodan) Monnier [Thu, 27 Sep 2018 09:38:30 +0000 (11:38 +0200)]
transmogrifier: Just make attachement maps into a list and reroll

6 years agotransmogrifier: Use the correct variable and prefer inspect in case of a bad type...
Haelwenn (lanodan) Monnier [Thu, 27 Sep 2018 09:10:54 +0000 (11:10 +0200)]
transmogrifier: Use the correct variable and prefer inspect in case of a bad type being passed on

6 years agotransmogrifier: more robustly handle dereferencing pointer URIs
William Pitcock [Thu, 27 Sep 2018 07:14:15 +0000 (07:14 +0000)]
transmogrifier: more robustly handle dereferencing pointer URIs

6 years agotransmogrifier: Use oneliners when applicable
Haelwenn (lanodan) Monnier [Wed, 26 Sep 2018 19:01:33 +0000 (21:01 +0200)]
transmogrifier: Use oneliners when applicable

6 years agotransmogrifier: reformat `cond` block by hand
William Pitcock [Wed, 26 Sep 2018 18:47:18 +0000 (18:47 +0000)]
transmogrifier: reformat `cond` block by hand

6 years agotransmogrifier: Add support for array-less hashtags, add broken announce, harden...
Haelwenn (lanodan) Monnier [Wed, 26 Sep 2018 09:27:00 +0000 (11:27 +0200)]
transmogrifier: Add support for array-less hashtags, add broken announce, harden get_actor

6 years agotransmogrifier: pro-actively add support for Hashtag without array in tag
Haelwenn (lanodan) Monnier [Wed, 26 Sep 2018 08:21:58 +0000 (10:21 +0200)]
transmogrifier: pro-actively add support for Hashtag without array in tag

6 years agotransmogrifier_test: incoming notices with tag not being an array (kroeg)
Haelwenn (lanodan) Monnier [Wed, 26 Sep 2018 05:48:34 +0000 (07:48 +0200)]
transmogrifier_test: incoming notices with tag not being an array (kroeg)

6 years agotransmogrifier: Use a cond, add proactive support for arrays
Haelwenn (lanodan) Monnier [Tue, 25 Sep 2018 15:12:29 +0000 (17:12 +0200)]
transmogrifier: Use a cond, add proactive support for arrays

6 years ago[Pleroma.Web.ActivityPub.Transmogrifier]: quick fix when tag is a Map
Haelwenn (lanodan) Monnier [Fri, 21 Sep 2018 12:46:49 +0000 (14:46 +0200)]
[Pleroma.Web.ActivityPub.Transmogrifier]: quick fix when tag is a Map

6 years ago[Pleroma.Web.ActivityPub.Transmogrifier]: fix emoji in tag when it’s not in a array...
Haelwenn (lanodan) Monnier [Fri, 21 Sep 2018 12:36:29 +0000 (14:36 +0200)]
[Pleroma.Web.ActivityPub.Transmogrifier]: fix emoji in tag when it’s not in a array [kroeg]

Also simplified the code for name trimming.

And not copying the Map.merge part as it looks buggy.
See: https://queer.hacktivis.me/objects/a9f21ebc-9a12-4a6c-89d5-3d46955c6ee8

6 years ago[Pleroma.Web.ActivityPub.Transmogrifier]: fix when attachment contain is just a Map...
Haelwenn (lanodan) Monnier [Fri, 21 Sep 2018 10:57:31 +0000 (12:57 +0200)]
[Pleroma.Web.ActivityPub.Transmogrifier]: fix when attachment contain is just a Map [kroeg]

6 years ago[Pleroma.Web.ActivityPub.Transmogrifier]: Fix when inReplyTo is a inlined post [kroeg]
Haelwenn (lanodan) Monnier [Fri, 21 Sep 2018 10:43:35 +0000 (12:43 +0200)]
[Pleroma.Web.ActivityPub.Transmogrifier]: Fix when inReplyTo is a inlined post [kroeg]

6 years ago[Pleroma.Web.ActivityPub.ActivityPub]: Harden getting endpoints [kroeg]
Haelwenn (lanodan) Monnier [Fri, 21 Sep 2018 09:41:20 +0000 (11:41 +0200)]
[Pleroma.Web.ActivityPub.ActivityPub]: Harden getting endpoints [kroeg]

6 years agoMerge branch 'fix/s3/filenames-with-spaces' into 'develop'
kaniini [Mon, 24 Sep 2018 14:17:21 +0000 (14:17 +0000)]
Merge branch 'fix/s3/filenames-with-spaces' into 'develop'

Uploaders.S3: Replace unsafe characters in object key

See merge request pleroma/pleroma!359

6 years agoUploaders.S3: Replace unsafe characters in object key
Martin Kühl [Mon, 24 Sep 2018 13:38:32 +0000 (15:38 +0200)]
Uploaders.S3: Replace unsafe characters in object key

According to [the S3 docs][s3], the characters safe for use in object keys are:

* 0-9
* a-z
* A-Z
* !
* -
* _
* .
* *
* '
* (
* )

(The / character is not listed but mentioned being safe outside of the list.)

Several characters that are valid in filenames can cause problems, for example
spaces are not valid in URLs and need to be escaped,
sequences of spaces can become squeezed by S3,
some characters like \ are documented to require “significant special handling”.

To avoid these problems, this change encodes the filename
before using it as part of the S3 object name
by replacing all characters except those documented as “safe” with dashes.

[s3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html

6 years agoMerge branch 'update/pleroma-fe-20180922' into 'develop'
kaniini [Sat, 22 Sep 2018 05:08:37 +0000 (05:08 +0000)]
Merge branch 'update/pleroma-fe-20180922' into 'develop'

update pleroma frontend

See merge request pleroma/pleroma!357

6 years agoupdate pleroma frontend
William Pitcock [Sat, 22 Sep 2018 05:07:20 +0000 (05:07 +0000)]
update pleroma frontend

6 years agoMerge branch 'feature/html-scrub-policy-tests' into 'develop'
kaniini [Sat, 22 Sep 2018 03:50:39 +0000 (03:50 +0000)]
Merge branch 'feature/html-scrub-policy-tests' into 'develop'

html: add scrub policy tests

See merge request pleroma/pleroma!356

6 years agotest: add smoketests for the scrubbing policies
William Pitcock [Sat, 22 Sep 2018 03:44:19 +0000 (03:44 +0000)]
test: add smoketests for the scrubbing policies

6 years agohtml: twittertext: add missing catchall scrub function
William Pitcock [Sat, 22 Sep 2018 03:19:43 +0000 (03:19 +0000)]
html: twittertext: add missing catchall scrub function

6 years agoMerge branch 'followup/twitterapi-no-rich-text-field' into 'develop'
kaniini [Sat, 22 Sep 2018 03:30:00 +0000 (03:30 +0000)]
Merge branch 'followup/twitterapi-no-rich-text-field' into 'develop'

twitter api: add no_rich_text option to userview for account prefs

See merge request pleroma/pleroma!355

6 years agotwitter api: add no_rich_text option to userview for account prefs
William Pitcock [Sat, 22 Sep 2018 03:20:25 +0000 (03:20 +0000)]
twitter api: add no_rich_text option to userview for account prefs

6 years agoMerge branch 'feature/rich-text-optout-backend' into 'develop'
kaniini [Sat, 22 Sep 2018 03:08:19 +0000 (03:08 +0000)]
Merge branch 'feature/rich-text-optout-backend' into 'develop'

backend support for opting out of rich text on a per-account basis

See merge request pleroma/pleroma!354

6 years agotest: add tests for new User.html_filter_policy()
William Pitcock [Sat, 22 Sep 2018 03:01:01 +0000 (03:01 +0000)]
test: add tests for new User.html_filter_policy()

6 years agomastodon api: formatting
William Pitcock [Sat, 22 Sep 2018 02:48:42 +0000 (02:48 +0000)]
mastodon api: formatting

6 years agotwitter api: add support for disabling rich text
William Pitcock [Sat, 22 Sep 2018 02:17:19 +0000 (02:17 +0000)]
twitter api: add support for disabling rich text

6 years agomastodon api: add support for user-supplied html policy
William Pitcock [Sat, 22 Sep 2018 02:14:25 +0000 (02:14 +0000)]
mastodon api: add support for user-supplied html policy

6 years agotwitter api: add support for user-specified html policy
William Pitcock [Sat, 22 Sep 2018 02:13:54 +0000 (02:13 +0000)]
twitter api: add support for user-specified html policy

6 years agouser: add User.html_filter_policy()
William Pitcock [Sat, 22 Sep 2018 01:37:05 +0000 (01:37 +0000)]
user: add User.html_filter_policy()

6 years agohtml: default to using normal scrub policy if provided scrub policy is nil
William Pitcock [Sat, 22 Sep 2018 01:10:53 +0000 (01:10 +0000)]
html: default to using normal scrub policy if provided scrub policy is nil

6 years agoMerge branch 'feature/dynamic-user-refresh' into 'develop'
kaniini [Fri, 21 Sep 2018 00:00:28 +0000 (00:00 +0000)]
Merge branch 'feature/dynamic-user-refresh' into 'develop'

user: implement dynamic refresh of profiles

See merge request pleroma/pleroma!350

6 years agoMerge branch 'task-204-on-options-request' into 'develop'
kaniini [Thu, 20 Sep 2018 23:54:51 +0000 (23:54 +0000)]
Merge branch 'task-204-on-options-request' into 'develop'

Return 204 response on options request

See merge request pleroma/pleroma!347

6 years agomix: remove fix_ap_users task, now obsolete
William Pitcock [Thu, 20 Sep 2018 23:51:06 +0000 (23:51 +0000)]
mix: remove fix_ap_users task, now obsolete

6 years agotest: add test proving that users are refreshed when stale
William Pitcock [Thu, 20 Sep 2018 23:49:08 +0000 (23:49 +0000)]
test: add test proving that users are refreshed when stale

6 years agouser: implement dynamic refresh of profiles (gets rid of need for fix_ap_users task)
William Pitcock [Wed, 19 Sep 2018 06:13:18 +0000 (06:13 +0000)]
user: implement dynamic refresh of profiles (gets rid of need for fix_ap_users task)

6 years agoMerge branch 'bump-mastofe-2018-09-20' into 'develop'
Haelwenn [Thu, 20 Sep 2018 16:24:32 +0000 (16:24 +0000)]
Merge branch 'bump-mastofe-2018-09-20' into 'develop'

Update mastodon frontend

Closes https://git.pleroma.social/pleroma/mastofe/issues/33

See: https://git.pleroma.social/pleroma/pleroma/merge_requests/352

6 years agoUpdate mastodon frontend
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 16:10:13 +0000 (18:10 +0200)]
Update mastodon frontend

6 years agoMerge branch 'feature/mastodon_api_2.5.0' into 'develop'
Haelwenn [Thu, 20 Sep 2018 14:54:30 +0000 (14:54 +0000)]
Merge branch 'feature/mastodon_api_2.5.0' into 'develop'

Update mastodon API to 2.5.0

Closes: https://git.pleroma.social/pleroma/pleroma/issues/298
Closes: https://git.pleroma.social/pleroma/pleroma/issues/299
See: https://git.pleroma.social/pleroma/pleroma/merge_requests/351

6 years ago[Pleroma.Web.MastodonAPI.MastodonAPIController]: Bump mastodon_api_level to 2.5.0
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 14:48:12 +0000 (16:48 +0200)]
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Bump mastodon_api_level to 2.5.0

6 years ago[Pleroma.Web.MastodonAPI.MastodonAPIController]: Remove unused variables
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 14:37:18 +0000 (16:37 +0200)]
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Remove unused variables

6 years ago[Pleroma.Web.Router]: Fake /api/v1/endorsements
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 14:25:07 +0000 (16:25 +0200)]
[Pleroma.Web.Router]: Fake /api/v1/endorsements

6 years ago[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 14:22:31 +0000 (16:22 +0200)]
[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)

6 years ago[Pleroma.Web.MastodonAPI.StatusView] add replies_count
Haelwenn (lanodan) Monnier [Thu, 20 Sep 2018 14:10:46 +0000 (16:10 +0200)]
[Pleroma.Web.MastodonAPI.StatusView] add replies_count

6 years agotwitter api: fix mimetype fallback when attachments use a URI instead of a URL object
William Pitcock [Wed, 19 Sep 2018 04:58:17 +0000 (04:58 +0000)]
twitter api: fix mimetype fallback when attachments use a URI instead of a URL object

6 years agomastodon api: default attachment type to image if one is not present
William Pitcock [Wed, 19 Sep 2018 04:57:28 +0000 (04:57 +0000)]
mastodon api: default attachment type to image if one is not present

6 years agoMerge branch 'fix/fake-filters' into 'develop'
Haelwenn [Wed, 19 Sep 2018 03:53:25 +0000 (03:53 +0000)]
Merge branch 'fix/fake-filters' into 'develop'

Revert "Mastodon API: Fake support for loading filters"

See merge request pleroma/pleroma!348

6 years agoRevert "Mastodon API: Fake support for loading filters"
Martin Kühl [Tue, 18 Sep 2018 09:57:33 +0000 (11:57 +0200)]
Revert "Mastodon API: Fake support for loading filters"

This reverts commit c1d07da4e18cc2acd11a5a131e1482aec5996552.

The fake support was superseded by 6e030129fb33926e6a5bd75c27af6f657f9da2a5 which actually implements the faked filters API.

This change removes the fake support and ensures that the actual implementation is used.

6 years agoReturn 204 response on options request
Dominique Feyer [Mon, 17 Sep 2018 10:21:01 +0000 (12:21 +0200)]
Return 204 response on options request

6 years agoMerge branch 'feature/mediaproxy-inline-images' into 'develop'
kaniini [Sun, 16 Sep 2018 02:25:11 +0000 (02:25 +0000)]
Merge branch 'feature/mediaproxy-inline-images' into 'develop'

html: support mediaproxy for inline images

Closes #275

See merge request pleroma/pleroma!346

6 years agoconfig: pass inline images through mediaproxy (closes #275)
William Pitcock [Sun, 16 Sep 2018 02:13:54 +0000 (02:13 +0000)]
config: pass inline images through mediaproxy (closes #275)

6 years agohtml: add policy which transforms inline images to pass through the media proxy
William Pitcock [Sun, 16 Sep 2018 02:07:32 +0000 (02:07 +0000)]
html: add policy which transforms inline images to pass through the media proxy

6 years agohtml: allow scrubbing policies to be stackable
William Pitcock [Sun, 16 Sep 2018 02:07:01 +0000 (02:07 +0000)]
html: allow scrubbing policies to be stackable

6 years agoMerge branch 'feature/mrf-scrub' into 'develop'
kaniini [Sun, 16 Sep 2018 01:31:03 +0000 (01:31 +0000)]
Merge branch 'feature/mrf-scrub' into 'develop'

MRF: html scrubbing filter

See merge request pleroma/pleroma!345

6 years agoMRF: add policy for normalizing HTML markup (local and remote) to a specific policy
William Pitcock [Mon, 10 Sep 2018 00:48:28 +0000 (00:48 +0000)]
MRF: add policy for normalizing HTML markup (local and remote) to a specific policy

6 years agohtml: add the ability to override the default scrub policy
William Pitcock [Mon, 10 Sep 2018 00:33:44 +0000 (00:33 +0000)]
html: add the ability to override the default scrub policy