lain
fa920037f1
Merge pull request 'Fix notification query plan for users with domain blocks' ( #7981 ) from fix/domain-block-subplan-cost into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7981
2026-09-02 13:41:40 +00:00
lain
70d743bff9
Merge branch 'develop' into fix/domain-block-subplan-cost
2026-09-02 10:19:27 +00:00
Lain Soykaf
635bc19ac8
fix(notifications): cost the followed-accounts subselect once
...
Wrap the followed ap_ids subselect in keep_following_or_not_domain_blocked
in ARRAY(...) so it becomes an InitPlan. As a plain subselect the planner
charged its startup per rescan of the actor lookup, which could make
Notification.for_user pick a plan that scans every active user per row.
2026-09-02 13:42:48 +04:00
Lain Soykaf
89e684dc9c
docs(retention): describe the cursor walk and its limits
2026-09-02 12:32:09 +04:00
Lain Soykaf
6c8ed0a3b8
feat(retention): walk activities incrementally with a persisted cursor
...
Grouping the whole activities table by thread every run is unusable on
a large instance: on a 312 GB database it plans as a seq scan plus a
50M-row on-disk sort. Instead, walk activities in id order (flake ids
are time-ordered) from a persisted cursor up to the id that corresponds
to the deadline, and verify only the threads those activities belong to
through the (type, context) index. Measured on that instance: 147 ms
for a 50k-activity range scan, 349 ms warm / 14 s cold to verify ~700
threads.
The cursor is persisted per chunk so a killed run resumes. The
watermark walk keeps a cursor of its own so it cannot leave the
age-based walk stranded behind the deadline. Adds the retention_cursors
table.
2026-09-02 12:32:09 +04:00
Lain Soykaf
c1f8d75019
docs: document the bounded retention mode
2026-09-02 11:53:42 +04:00
Lain Soykaf
fa4fb00910
refactor(database): reuse retention query in prune_objects
...
prune_objects --keep-threads now shares the thread selection with
Pleroma.Retention, which additionally keeps threads that mention a
local user or that are referenced by a report. The hashtag cleanup
is shared as well.
2026-09-02 11:53:42 +04:00
Lain Soykaf
cd796f007d
feat(retention): run eviction from an Oban cron worker
...
Adds config :pleroma, :retention (disabled by default) and an hourly
crontab entry that evicts one bounded batch per run.
2026-09-02 11:53:42 +04:00
Lain Soykaf
1ebcd4f79d
feat(retention): add bounded eviction of old remote threads
...
Pleroma.Retention treats remote content as a cache: a thread is evicted
once nobody local has interacted with it and it has been quiet for
longer than remote_post_retention_days, or when the objects table is
over an optional row watermark. Local posts are never deleted.
A single grouping scan collects activity and object ids per thread so
the deletes only touch primary key and ap_id indexes.
2026-09-02 11:53:41 +04:00
Mark Felder
9921e802c9
Delete legacy Postgres sequences
...
for activities, chats, and users which were converted to Flake IDs
2026-08-24 14:51:58 -07:00
Phantasm
45459c8398
Merge branch 'develop' into audit-mix-audit-report
2026-08-19 22:20:55 +02:00
Phantasm
5709531197
Sec: Bump Phoenix LiveView to 1.2.9
...
Technically 1.1.33 would also do...
Also updates:
phoenix_pubsub 2.1.3 => 2.2.0
ranch 2.2.0 => 2.2.1
websock_adapter 0.5.8 => 0.5.9
2026-08-19 22:08:21 +02:00
Phantasm
c4ca9b41ad
Sec: Bump Phoenix to version 1.8.11
2026-08-19 22:08:20 +02:00
Phantasm
39d5648447
Sec: Bump bandit to 1.12.4
...
Also bumps:
plug 1.20.2 => 1.20.3
plug_crypto 2.1.1 => 2.2.0
thousand_island 1.4.3 => 1.5.0
2026-08-19 22:07:22 +02:00
Phantasm
71cb70cd01
Sec: Bump postgrex to 0.22.4
2026-08-19 22:06:26 +02:00
Phantasm
124f4ece1d
Merge pull request 'Syslog: set runtime: false to fix OTP releases' ( #7966 ) from syslog-fix-otp into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7966
2026-08-18 20:47:55 +00:00
Phantasm
59042e2793
Syslog: set runtime: false to fix OTP releases
...
The syslog package is not directly part of the runtime.
2026-08-18 21:41:48 +02:00
Phantasm
0e642d4c90
Merge pull request 'Syslog: Fix intermittent failure to compile due to old pc version' ( #7965 ) from syslog-pc-fix into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7965
2026-08-18 18:53:17 +00:00
Phantasm
16890c051a
Syslog: Fix intermittent failure to compile due to old pc version
...
Upstream hasn't made a release with the fix, pin fixed commit
for the time being.
2026-08-18 19:54:42 +02:00
Phantasm
3ecfe034d7
Merge pull request 'Oban: Enable Reindexer plugin to reduce oban_jobs index DB bloat' ( #7964 ) from oban-reindex-cron into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7964
2026-08-18 17:51:30 +00:00
Phantasm
6a5ca6213a
Oban: Enable Reindexer plugin to reduce oban_jobs index DB bloat
2026-08-18 19:29:00 +02:00
Phantasm
48d6e9476b
Merge pull request 'Revert "Merge pull request 'MediaProxy: detect images when there's no file extension' ( #7933 ) from mediaproxy-content-type into develop"' ( #7959 ) from revert-7933 into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7959
2026-08-14 20:24:56 +00:00
Phantasm
96d69bfa0a
Merge pull request 'Docs: Fix OTP install links left behind during migration, broke up wall of install commands in OTP guides' ( #7960 ) from fix-otp-guide-links into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7960
2026-08-13 22:01:27 +00:00
Phantasm
5ecc936444
Docs: split wall of install commands, fix downloading OTP bundle
...
Bundle could not be downloaded, because sudo does not cope with the
previous syntax that double quoted the whole command, and the download
link was single quoted.
2026-08-13 23:52:06 +02:00
Phantasm
2dda6cb52a
Docs: Update OTP bundle links left behind in the Forgejo migration
2026-08-13 23:26:44 +02:00
Phantasm
f672ab337c
Revert "Merge pull request 'MediaProxy: detect images when there's no file extension' ( #7933 ) from mediaproxy-content-type into develop"
...
A partial revert, keeping the updated @inline_content_types list and
cosmetic changes.
This reverts commit 4fe567064a , reversing
changes made to 9b8aa2e2ee .
2026-08-13 22:02:11 +02:00
Lain Soykaf
656191bd1e
fix(deps): use released Hackney 4.7.3
2026-08-11 14:16:59 +04:00
nicole mikołajczyk
ad7f68b924
Merge pull request 'Embed notificaiton details for grouped move/reaction/chat/report notification' ( #7954 ) from mkljczk/pleroma:grouped-notifs-embed into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7954
2026-08-03 14:07:32 +00:00
nicole mikołajczyk
2876fed876
Embed notificaiton details for grouped move/reaction/chat/report notification
...
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-08-02 22:13:31 +02:00
lain
f53342775d
Merge pull request 'Add rollback migrations for Rebased' ( #7685 ) from gitlab-mr-iid-4308 into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7685
2026-07-29 12:31:25 +00:00
Lain Soykaf
478b021fbe
fix(migrations): make Rebased rollback safe
2026-07-29 15:22:13 +04:00
nicole mikołajczyk
e1e853e8f7
Remove migration merged upstream
...
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-07-29 15:22:13 +04:00
mkljczk
2e59dcb9f6
style
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2026-07-29 15:22:13 +04:00
mkljczk
e516c43411
Add docs for Rebased migration
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2026-07-29 15:22:13 +04:00
mkljczk
253bbb80f5
Add rollback migrations for Rebased
...
Signed-off-by: mkljczk <git@mkljczk.pl>
2026-07-29 15:22:13 +04:00
lain
e143e645d3
Merge pull request 'OpenRC: Automatically run migrations before starting pleroma' ( #7680 ) from gitlab-mr-iid-4303 into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7680
2026-07-29 11:07:32 +00:00
Lain Soykaf
8943ab8140
fix(openrc): preserve migration execution context
2026-07-29 15:02:16 +04:00
lain
1dd6a345bf
Merge pull request 'Respect activity restrictions in account statuses' ( #7943 ) from mkljczk/pleroma:issue-2604-restrict-account-statuses into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7943
2026-07-29 06:44:26 +00:00
Lain Soykaf
4a47a756be
fix(mastodon-api): optimize account status restrictions
2026-07-28 16:01:48 +04:00
nicole mikołajczyk
1bb5eca063
Merge pull request 'Fix typo in spec' ( #7947 ) from mkljczk/pleroma:typo into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7947
2026-07-28 10:41:05 +00:00
nicole mikołajczyk
5c85dadb29
Fix typo in spec
...
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2026-07-28 01:06:00 +02:00
lain
a45eb365ed
Merge pull request 'Abort incomplete media proxy responses' ( #7946 ) from lambadalambda/pleroma:fix/media-proxy-truncated-cache into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7946
2026-07-27 15:08:06 +00:00
lain
a22062a224
Merge pull request 'OAuth App: Fix test, optimize code.' ( #7692 ) from gitlab-mr-iid-4315 into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7692
2026-07-27 14:42:53 +00:00
Lain Soykaf
bc999b3309
fix(media-proxy): abort truncated streams
2026-07-27 16:32:44 +04:00
lain
16581a2f6d
Merge pull request 'Update Debian and Ubuntu installation requirements' ( #7806 ) from gitlab-mr-iid-4429 into develop
...
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7806
2026-07-27 12:16:12 +00:00
Lain Soykaf
be5a3957b2
docs: explain libvips dependency
2026-07-27 16:12:21 +04:00
Lain Soykaf
3b71770cfa
docs: update Debian and Ubuntu requirements
2026-07-27 15:31:59 +04:00
Lain Soykaf
030c7e929c
style(oauth): use single alias directives
2026-07-27 12:14:58 +04:00
Lain Soykaf
d30d205f0b
fix(oauth): preserve dependent app cleanup
2026-07-27 11:57:16 +04:00
Lain Soykaf
b4c624911c
Merge branch 'develop' into gitlab-mr-iid-4315
2026-07-27 11:34:31 +04:00