Lain Soykaf
4ab96bbb9f
EmojiPackControllerDownloadZipTest: Use a unique folder for each test.
2025-08-09 11:11:44 +04:00
Lain Soykaf
36b3aa0a97
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into emoji-pack-upload
2025-08-08 17:17:29 +04:00
Lain Soykaf
4eeb9c1f2d
EmojiPackControllerDownloadZipTest: Add tests for empty pack name and failing creation.
2025-08-08 15:43:58 +04:00
Lain Soykaf
897c1ced5f
EmojiPackControllerDownloadZipTest: Add test.
2025-08-07 13:47:54 +04:00
Mark Felder
c1836c9821
Fix test that relied on previous fake hashtag behavior
...
This test is normally skipped on MacOS due to weird unicode behavior
2025-08-02 09:53:58 -07:00
Mark Felder
f53538b430
Merge remote-tracking branch 'origin/develop' into hashtag-search
2025-08-01 17:15:42 -07:00
feld
34efff85da
Merge branch 'gun' into 'develop'
...
Update Plug/Cowboy/Gun
See merge request pleroma/pleroma!4393
2025-08-02 00:00:32 +00:00
feld
bb78fb5f65
Merge branch 'deactivated-404-inbox' into 'develop'
...
Return 404 when an activity is sent to a deactivated user's /inbox
Closes #3370
See merge request pleroma/pleroma!4371
2025-08-01 21:26:12 +00:00
Mark Felder
7b8d6eca65
Remove deprecated "use Plug.Test"
2025-08-01 13:57:06 -07:00
feld
5f93e85e0b
Merge branch 'tesla-update' into 'develop'
...
Update Tesla to 1.15.3
See merge request pleroma/pleroma!4391
2025-08-01 20:03:27 +00:00
Mark Felder
3c36bcfaa6
Remove deprecated "use Tesla" macro usage
2025-08-01 12:19:41 -07:00
Mark Felder
19f32f7b09
Strip hashtag prefixes
...
Users may actually type in a literal hashtag into the search, so this will ensure it still returns results.
2025-07-31 18:17:59 -07:00
Mark Felder
b1acc9281a
Use ranking to improve order of results
2025-07-31 18:02:33 -07:00
Mark Felder
93c144e397
Improve hashtag search with multi word queries
2025-07-31 17:46:32 -07:00
Mark Felder
26fe604942
Hashtag searches now return real results from the database
2025-07-31 17:35:11 -07:00
Mark Felder
44e56ed756
Switch to example domain name
2025-07-30 18:26:56 -07:00
Mark Felder
4e6f0af4ce
Better assertion logic
2025-07-30 17:32:49 -07:00
Mark Felder
ab4edf7933
Add proper ReverseProxy test cases
2025-07-30 17:20:42 -07:00
Mark Felder
c49dece0dd
Update test to also cover query encoding
2025-07-30 15:13:43 -07:00
Mark Felder
4217ababfc
Improve design so existing tests do not break
2025-07-30 13:17:50 -07:00
Mark Felder
1d8eafc0d2
Add failing test case for URL encoding issue
2025-07-30 12:20:28 -07:00
feld
ece089abab
Merge branch 'improved-reachability' into 'develop'
...
Reachability refactor
See merge request pleroma/pleroma!4366
2025-07-29 21:13:48 +00:00
Mark Felder
28b69f5c04
Reset Emoji cache between tests
...
This fixes intermittent test failures
2025-07-22 15:21:20 -07:00
Mark Felder
113261146f
Fix account endorsements test
...
Random failures were caused by the results sometimes being returned out of order.
2025-07-22 15:21:20 -07:00
Mark Felder
b54b19a0f4
Fix test for mix task
...
Missing assert_receive which would cause the test to randomly fail
2025-07-22 15:21:20 -07:00
Mark Felder
17987e3990
Enforce an exact domain match for WebFinger resolution
...
The regex was not being terminated with an $
2025-07-03 12:08:36 -07:00
Mark Felder
736686b4e2
Add specific tests for Webfinger aliases / also_known_as
...
Also reorganize similar tests to be grouped together
2025-07-03 11:19:52 -07:00
Mark Felder
122ad4603a
Use correct Endpoint host and WebFinger domains in tests
2025-07-03 10:56:07 -07:00
Mark Felder
59844d0202
Rename Instance.delete_users_and_activities/1 to Instance.delete/1
2025-06-28 13:37:06 -07:00
Mark Felder
df0880d8d1
Add Instances.delete_all_unreachable/0
2025-06-28 13:23:37 -07:00
Mark Felder
29f7607910
Add Instances.check_all_unreachable/0 and Instance.check_unreachable/1
2025-06-28 12:51:10 -07:00
Mark Felder
2267ace106
Ensure ReachabilityWorker jobs can be scheduled without needing awareness of the phase design
2025-06-27 18:12:18 -07:00
Mark Felder
ff5f88aae3
Instance.set_reachable/1 should delete any existing ReachabilityWorker jobs for that instance
2025-06-27 18:07:46 -07:00
Mark Felder
77dca7c3e5
Refactor ReachabilityWorker to use a 5-phase reachability testing approach
...
It will check reachability for an instance deemed unreachable at the following intervals:
4 attempts, once a minute
4 attempts, once every 15 minutes
4 attempts, once every 60 minutes
4 attempts, once every 8 hours
4 attempts, once every 24 hours
This should be effective and respectful of the resources of instances on the fediverse.
We have the Oban Pruner plugin enabled to keep the Oban Jobs table from growing indefinitely. It prunes every 15 minutes, but this will interfere with our ability to enforce uniqueness on the ReachabilityWorker jobs for a time period longer than 15 minutes. The solution is to exclude the ReachabilityWorker from the pruning operation and instead schedule a custom job that will prune the table for us once a day. The ReachabilityPruner cron task will clean up the history of the ReachabilityWorker jobs older than 6 days.
2025-06-27 17:00:02 -07:00
Mark Felder
e58ecd3234
Merge remote-tracking branch 'origin/develop' into improved-reachability
2025-06-27 15:59:46 -07:00
feld
cf6587d344
Merge branch 'delete-instance-improvement' into 'develop'
...
Queue individual jobs for each user that needs to be deleted when deleting an instance.
See merge request pleroma/pleroma!4377
2025-06-27 20:25:41 +00:00
Mark Felder
ca616e9e73
Fix Instance and Admin API controller tests for deleting instances
...
Ensure the job was queued, remove the other test validation. We already prove elsewhere that Pleroma.User.delete/1 works, so repeating that here is a waste.
2025-06-27 12:14:17 -07:00
feld
f6c9b003fa
Merge branch 'resurrect-mrf-quietreply' into 'develop'
...
Resurrect MRF.QuietReply
See merge request pleroma/pleroma!4368
2025-06-27 19:13:07 +00:00
Mark Felder
81155a2292
changelog for MRF.QuietReply
2025-06-27 11:26:27 -07:00
Mark Felder
56aab905e8
Queue individual jobs for each user that needs to be deleted when deleting an instance.
2025-06-27 11:13:15 -07:00
vaartis
9be542e272
Merge branch 'handle-dislike' into 'develop'
...
Handle the Dislike activity by transforming into a thumbs-down emote
Closes #3378
See merge request pleroma/pleroma!4369
2025-06-21 14:18:46 +00:00
Mark Felder
37d4ed883c
Change MRF logic to match when there is an inReplyTo and the public address is in the "to" field
...
Update the method to alter the to/cc fields for consistency and modify the tests to work without requiring a specific order items in the list
2025-06-19 14:50:45 -07:00
vaartis
cda7cbf2a1
Merge branch 'scrobbles' into 'develop'
...
Change ScrobbleView external link param name to use snake case
See merge request pleroma/pleroma!4243
2025-06-18 10:25:38 +00:00
Ekaterina Vaartis
ee37b2d8c6
Return 404 when an activity is sent to a deactivated user's /inbox
...
Also return 404 when the user who sent the activity is believed to be
deactivated. It was already an error, now it just returns a better
reason than "Invalid request". Also send proper errors when either
user is not known at all.
2025-06-18 00:16:46 +03:00
Ekaterina Vaartis
7ecfb95331
Handle the Dislike activity by transforming into a thumbs-down emote
2025-06-16 14:18:15 +03:00
Haelwenn (lanodan) Monnier
a69e417020
File.mkdir_p -> Pleroma.Backports.mkdir_p
2025-06-16 12:48:47 +02:00
lain
bc75bb35fa
Merge branch 'relaxed-also-known-as' into 'develop'
...
Relax alsoKnownAs requirements to just being a URI
See merge request pleroma/pleroma!4367
2025-06-14 08:30:13 +00:00
Mark Felder
33cf49e860
Resurrect MRF.QuietReply
...
This was not working correctly because the Publisher was stripping the public address from the cc when federating unlisted activities
2025-06-13 10:28:21 -07:00
Mark Felder
fe6d2ecc97
Test for unlisted but Publisher param_cc is not empty
2025-06-12 22:41:39 -07:00
Mark Felder
d3adc3e05e
Split this cc test into two individual cases
2025-06-12 21:59:37 -07:00