Commit Graph

553 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
df6062d8be Merge branch 'develop' into activitypub 2024-08-21 12:57:10 -04:00
Julian Lam
25bf97ae28 fix: #12732 editing of remote post content
title can now be edited, post content is not-editable.
2024-08-13 15:12:57 -04:00
Barış Soner Uşaklı
5eaba4935c Merge branch 'master' into develop 2024-08-12 10:30:12 -04:00
Barış Soner Uşaklı
c3f02b74cc feat: add allow and frameborder to allow attrs 2024-08-12 10:30:01 -04:00
Julian Lam
c01f154937 breaking: core html stripping on plaintext, remove 'filter:teasers.configureStripTags' hook, remove html stripping from teaser generation
These two steps were removed because a `type` property is passed to `filter:post.parse` now, and thus plugins themselves can handle independently.

Core also now strips all html when `type` is plaintext, so plugins don't have to (or if they still pass html back).
2024-07-12 12:30:37 -04:00
Barış Soner Uşaklı
530241e0f2 lint: remove unused 2024-07-11 22:27:41 -04:00
Barış Soner Uşaklı
9b8c834ef0 perf: get rid of exists call, load all attachments in one call 2024-07-11 22:24:32 -04:00
Julian Lam
f629b20f2d fix: tighten up logic in checkToPid internal method 2024-07-05 13:49:16 -04:00
Julian Lam
e75ec39b70 feat: topic backfill logic via resolvable context #12647 2024-06-28 12:54:41 -04:00
Julian Lam
fe70a2b8b5 fix: #12652, incorrect user, post, topic counters with AP enabled 2024-06-25 12:36:11 -04:00
Barış Soner Uşaklı
3f1b04ebe8 Merge branch 'develop' into activitypub 2024-06-14 12:14:45 -04:00
Barış Soner Uşaklı
80da3e0a6f Merge branch 'master' into develop 2024-06-14 12:12:37 -04:00
Barış Soner Uşaklı
73241bd521 perf: if sigs disabled dont filter uids 2024-06-14 12:12:16 -04:00
Julian Lam
f6d4d5630e chore: lint 2024-06-14 11:49:25 -04:00
Barış Soner Uşaklı
291bf7db41 perf: move attachments to post hash 2024-06-13 19:49:04 -04:00
Barış Soner Uşaklı
00c70ce7b0 Merge branch 'develop' into activitypub 2024-06-10 17:30:10 -04:00
Barış Soner Uşaklı
d9e135ef2f Merge branch 'master' into develop 2024-06-10 17:26:45 -04:00
Barış Soner Uşaklı
8eccdb481f refactor: move requires down 2024-06-10 17:18:41 -04:00
Barış Soner Uşaklı
795a0daa03 lint: fix semicolons 2024-06-10 17:17:46 -04:00
Barış Soner Uşaklı
236ac32303 refactor: posts cache to get rid of require in functions 2024-06-10 17:10:43 -04:00
Julian Lam
bcfac00bec fix: unintentional parseInt during post purge 2024-06-10 12:30:48 -04:00
Barış Soner Uşaklı
dac2cd2549 Merge branch 'develop' into activitypub 2024-06-10 12:19:07 -04:00
Barış Soner Uşaklı
516c068471 Merge branch 'master' into develop 2024-06-10 12:18:54 -04:00
Barış Soner Uşaklı
3ec44d640d feat: make upload scores descending for ordering 2024-06-10 11:00:45 -04:00
Barış Soner Uşaklı
f83a3672ca fix: set 2024-06-07 12:58:04 -04:00
Barış Soner Uşaklı
2ae5857005 refactor: remove verbose logs, 2024-06-07 12:13:28 -04:00
Barış Soner Uşaklı
9868a728bf refactor: single cache.del call 2024-06-04 21:14:11 -04:00
Julian Lam
709c91329a feat: pruning of stale notes older than 30 days with no engagement 2024-06-04 14:18:22 -04:00
Julian Lam
547fc17dcf fix: update post cache clearing logic to call helper function
regression from 8cf9617630
2024-05-28 12:01:30 -04:00
Julian Lam
09e71e94a2 Merge branch 'develop' into activitypub 2024-05-23 15:18:56 -04:00
Julian Lam
db30834ebc fix: sanitize-html configuration passed in src/posts/parse.js
Cursory review of sanitize-html documentation suggests that the currently-used `globalAttributes` property no longer exists, but was replaced with `nonBooleanAttributes`, likely because the attribute allow-list explicitly applies only to "non-boolean" attributes (e.g. not `checked` or `selected`).

Either way it does not likely affect us but is mainly here for future-proofing purposes.
2024-05-23 15:18:29 -04:00
Julian Lam
8cf9617630 feat: passing in types to parsePost for more specific handling by plugins 2024-05-17 15:22:13 -04:00
Julian Lam
9fbd48b152 fix: Posts.isMain cast pid to String instead 2024-05-10 12:07:28 -04:00
Julian Lam
336ea1eeb6 fix: type error in attachment emptying method 2024-05-10 11:18:33 -04:00
Julian Lam
ccd187e000 feat: Note deletion logic and refactoring, #12551 2024-05-09 15:49:03 -04:00
Barış Soner Uşaklı
91c3434fda Merge branch 'develop' into activitypub 2024-04-25 11:16:42 -04:00
Julian Lam
1253ded7d5 chore: minor cleanup 2024-04-16 13:38:05 -04:00
Julian Lam
f783338621 fix: #12496, url in schema 2024-04-11 13:43:29 -04:00
Julian Lam
525b7c2cee feat: save remote post url into hash for use 2024-04-11 13:25:37 -04:00
Julian Lam
6fc6cc33cd feat: note attachments via link preview plugin 2024-04-10 22:01:50 -04:00
Barış Soner Uşaklı
d725679648 fix: #12485, resolve flags on a topics posts on topic delete 2024-04-09 10:54:45 -04:00
Barış Soner Uşaklı
1027c6e6dd Merge branch 'develop' into activitypub 2024-03-20 12:20:57 -04:00
Tomas Nesrovnal
5924a6eb43 feat: add playsinline video attribute (#12419) 2024-03-18 12:25:07 -04:00
Julian Lam
c5c0c47393 chore: lint 2024-03-13 11:45:28 -04:00
Julian Lam
81b319f494 fix: accidental saving of ephemeral _activitypub object into db, should plumb into hooks only 2024-03-13 11:19:50 -04:00
Julian Lam
f7c8967ee2 refactor: use topics.post, topics.reply, and posts.edit in Create(Note), Create(Note), and Update(Note), respectively 2024-03-12 14:24:38 -04:00
Julian Lam
52c143aa03 fix: template helper 2024-03-12 13:27:29 -04:00
Julian Lam
0c2cfbe7a0 chore: lint 2024-03-06 14:59:49 -05:00
Julian Lam
f368a1a87f fix: remove intFields hack and update db.parseIntFields to only parseInt if field value is a number 2024-03-06 11:45:34 -05:00
Julian Lam
3a870360c4 fix: revert introduction of toPid into post intFields, manually cast toPid as int in getPostSummaryByPids if present and numeric 2024-02-21 15:15:59 -05:00