Lain Soykaf
6c73ebe484
Merge branch 'phnt/mastoapi-misattribution-3381' into release/2.10-sec
2025-12-29 09:47:54 +04:00
Phantasm
96de44b3d8
Tests AP Factory: fix featured collection factories
...
Internally it created Objects, tests passed Activities
2025-12-25 20:40:12 +01:00
Phantasm
ba8235ef50
lint
2025-12-23 16:51:59 +01:00
Phantasm
b9601ae11a
MastoAPI: Add Announce and EmojiReact attribution tests
...
Introduces a new EmojiReact Activity factory
2025-12-23 00:17:16 +01:00
Phantasm
01ffaba3d2
MastoAPI: Fix unauth visibility checks when fetching by Activity FlakeID
...
- Adds another Pleroma.ActivityPub.Visibility.visible_for_user?/2 func
- Modifies existing tests to include a local Activity referencing a
remote Object
- Changes Announce Activity test factory to reference Objects instead of
Activities and use a different Actor for the Announce
- Changes ap_id of remote user in Announce test factory to match Objects
- Adds `object_local` option to Note factories that explicitly changes
the domain in the URL to not match the endpoint URL in the test env
to properly work with the new visibility func, since we don't store
locality of Object unlike Activities
2025-12-23 00:07:16 +01:00
nicole mikołajczyk
e5be1d04d6
Update tests, make the mastodon subdomain example not have the /.well-known/host-meta redirect, as the docs don't include it
...
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2025-12-15 17:01:56 +01:00
nicole mikołajczyk
3e2573f1c4
Fix WebFinger for split-domain set ups
...
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2025-12-15 17:01:53 +01:00
Lain Soykaf
b023e1591c
PublisherTest: Mock -> Mox
2025-09-05 15:04:33 +04:00
Lain Soykaf
3de250da23
PublisherTest: Use mox instead of mock.
2025-09-05 14:18:12 +04:00
lain
81960dccf2
Merge branch 'translate-posts' into 'develop'
...
Support translation providers (DeepL, LibreTranslate)
See merge request pleroma/pleroma!4102
2025-03-20 09:11:57 +00:00
Mark Felder
7763b9a87f
Truncate the length of Rich Media title and description fields
...
Some sites like Instagram are serving obnoxiously long metadata fields
2025-03-19 10:29:45 -07:00
mkljczk
08de5f94e3
Merge remote-tracking branch 'origin/develop' into translate-posts
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-03-19 17:59:24 +01:00
mkljczk
fa76bb66f9
Merge remote-tracking branch 'origin/develop' into language-detection
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-03-11 20:38:56 +01:00
Lain Soykaf
2293d0826a
Tests: Fix tests.
2025-03-11 17:53:05 +04:00
Lain Soykaf
c31fabdebd
Mogrify/Mogrifun: Asyncify
2025-02-25 17:08:21 +04:00
Lain Soykaf
5851d787b6
Merge branch and resolve conflict in database_test.exs
2025-02-25 16:23:46 +04:00
Lain Soykaf
35814de0df
LanguageDetectorTests: Switch to mox
2025-02-25 12:31:19 +04:00
Lain Soykaf
229ce66a8f
DataCase: By default, stub DateTime.
2025-02-23 17:52:33 +04:00
Lain Soykaf
a92b1fbded
UserRelationshipTest: Don't use Mock.
2025-02-23 17:51:25 +04:00
mkljczk
22bbe55b55
fix
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-02-22 16:03:05 +01:00
mkljczk
013c60e13a
Merge remote-tracking branch 'origin/develop' into translate-posts
2025-02-22 14:07:23 +01:00
mkljczk
2b1ef1bbdf
Merge remote-tracking branch 'origin/develop' into language-detection
2025-02-22 14:05:53 +01:00
mkljczk
d818a3d762
Merge remote-tracking branch 'origin/develop' into translate-posts
2024-12-30 18:17:50 +01:00
floatingghost
c94c6eac22
Remerge of hashtag following ( #341 )
...
this time with less idiot
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/341
Signed-off-by: mkljczk <git@mkljczk.pl>
2024-12-30 17:56:18 +01:00
Mark Felder
5b04c2bf13
Test the final refresh behavior of a PollWorker poll_end job
2024-10-09 20:15:00 -04:00
Mark Felder
b2340b5b77
Permit backdating the poll closed timestamp
2024-09-30 14:45:13 -04:00
marcin mikołajczak
3ee8d0eeaf
Merge branch 'post-languages' into translate-posts
2024-08-22 13:07:49 +02:00
Mark Felder
c0ca7a4eca
User Factory: include the nickname in the generated URLs
2024-08-12 17:12:39 -04:00
Mark Felder
21fee42157
Test Factory: ensure remote users have a valid inbox
...
Without a valid inbox we can't generate the publish_one Oban jobs
2024-08-06 11:54:18 -04:00
marcin mikołajczak
f7a7517296
Merge remote-tracking branch 'origin/develop' into translate-posts
2024-08-02 09:42:17 +02:00
Mark Felder
e5a738d465
Refactor tests for Backups
2024-07-23 10:30:56 -04:00
Mark Felder
d124d8645e
Rework some Rich Media functionality for better error handling
...
Oban should not retry jobs that are likely to fail again
2024-07-17 12:40:07 -04:00
marcin mikołajczak
b07fd324fb
Merge remote-tracking branch 'origin/develop' into translate-posts
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-06-12 17:13:23 +02:00
Mark Felder
3211557f74
Render nice web push notifications for polls
2024-06-08 22:08:12 -04:00
Lain Soykaf
f5978da676
HTTPSignaturePlugTest: Rewrite to use mox.
2024-05-28 14:00:25 +04:00
marcin mikołajczak
70cabbf6dc
Fix tests
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-05-22 15:53:16 +02:00
marcin mikołajczak
799dc1773d
Merge remote-tracking branch 'origin/develop' into language-detection
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-05-18 11:13:09 +02:00
marcin mikołajczak
3893311bd2
Merge remote-tracking branch 'origin/develop' into translate-posts
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-27 13:48:10 +02:00
marcin mikołajczak
f954f98fb7
Implement /api/v1/instance/translation_languages
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:57:01 +02:00
marcin mikołajczak
28f8bb00d8
Add supported languages list to /api/v2/instance
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:54:01 +02:00
marcin mikołajczak
f0eb8e0b0c
Add tests
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:50:11 +02:00
marcin mikołajczak
2b739faa7e
Rename
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:45:33 +02:00
marcin mikołajczak
90f590788c
Add tests
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:44:18 +02:00
marcin mikołajczak
80dbbd5501
Detect language for incoming posts
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 23:11:12 +02:00
marcin mikołajczak
9932aeffc5
Add test
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-04-25 21:22:45 +02:00
marcin mikołajczak
c592a0e58d
Merge remote-tracking branch 'origin/develop' into HEAD
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-22 21:05:20 +01:00
Mark Felder
6b7b443ff9
Pleroma.Web.RichMedia.Parser: Remove test-specific codepaths
...
Also consolidate Tesla mocks into the HttpRequestMock module.
Tests were not exercising the real codepaths. The Rich Media Preview only works with https, but most of these tests were only mocking http.
2024-02-06 18:33:54 -05:00
Mark Felder
0cc038b67c
Ensure URLs with IP addresses for the host do not generate previews
2024-02-05 00:09:37 -05:00
Mark Felder
04fc4eddaa
Fix Rich Media Previews for updated activities
...
The Rich Media Previews were not regenerated when a post was updated due to a cache invalidation issue. They are now cached by the activity id so they can be evicted with the other activity cache objects in the :scrubber_cache.
2024-02-04 23:47:04 -05:00
Haelwenn
ab3f03a04a
Merge branch 'develop' into 'public-polls'
...
# Conflicts:
# docs/development/API/differences_in_mastoapi_responses.md
2024-01-21 12:03:29 +00:00