]> cat aescling's git repositories - mastodon.git/commit
Fix ActivityPub handling of replies with WEB_DOMAIN (#4895) (#4904)
authorThibG <thib@sitedethib.com>
Wed, 13 Sep 2017 12:22:16 +0000 (14:22 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 13 Sep 2017 12:22:16 +0000 (14:22 +0200)
commit550ff677daef92886ab7440ad262821f4c732e85
treeed8f222c1688092e9e819697d348f191776d336b
parentda77f65c4684a8a9ee25c3e18f6f09824c765c2d
Fix ActivityPub handling of replies with WEB_DOMAIN (#4895) (#4904)

* Fix ActivityPub handling of replies when LOCAL_DOMAIN ≠ WEB_DOMAIN (#4895)

For all intents and purposes, `local_url?` is used to check if an URL refers
to the Web UI or the various API endpoints of the local instances. Those things
reside on `WEB_DOMAIN` and not `LOCAL_DOMAIN`.

* Change local_url? spec, as all URLs handled by Mastodon are based on WEB_DOMAIN
app/lib/tag_manager.rb
spec/lib/tag_manager_spec.rb