Commit graph

1901 commits

Author SHA1 Message Date
Yonle
7e273a73eb html.c: RSS: fix.
Feed title, and description is not properly rendered.
So here goes a fix that instead of using encode_html TWICE,

We use sanitize() for feed description instead.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-18 23:34:29 +07:00
Yonle
d3e0f7a84b html.c: custom emoji <img>: Resize height to 2em, and put veritcal-align to middle.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-18 21:16:22 +07:00
default
2700567fca Avoid too deep nesting of html_entry(). 2023-07-18 09:59:16 +02:00
default
6e5c7d4a4b Increased recursion level for timeline_request(). 2023-07-18 09:51:59 +02:00
Yonle
fe0d820795 html.c / UX: Give admin page more space
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-17 18:33:15 +07:00
default
e6d5ce2654 Version 2.38 RELEASED. 2023-07-17 10:41:19 +02:00
default
35987ebb50 Avoid incomplete messages in timeline_request(). 2023-07-15 16:13:26 +02:00
grunfink
c409d2e260 Merge pull request '[Really optional] Whenever to have Placeholder on some inputs? & other stuff' (#69) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/69
2023-07-15 14:11:48 +00:00
Yonle
7e40e0d783 html.c: invalid html tag: else? just show it as encoded text.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-15 02:14:33 +07:00
Yonle
98c72db17c html.c: *prev_src at edit: Just use encode_html.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-15 02:06:10 +07:00
Yonle
299886d898 utils.c: "User id" does not need "\n".
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-15 00:42:57 +07:00
Yonle
1dc61ace13 html.c: Probably put placeholder on certain input and textboxes
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-15 00:42:52 +07:00
default
3d6f1ee7a8 Updated RELEASE_NOTES. 2023-07-14 15:05:14 +02:00
default
3e21aafb26 Fixed crash on empty static and history objects. 2023-07-14 14:59:50 +02:00
default
43d2e80dc5 Use the right object id when storing Announce + Create + Note objects. 2023-07-14 09:05:27 +02:00
default
eee1916858 Fixed prototypes. 2023-07-14 08:47:20 +02:00
grunfink
510bd60cdf Merge pull request 'html.c: Don't let public get into timeline.html_' (#67) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/67
2023-07-14 05:23:44 +00:00
Yonle
77f5b51126 html.c: Don't let public get into timeline.html_
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-14 11:59:31 +07:00
default
4ab22b2c14 If a Page has an image, show it as an attachment. 2023-07-13 23:41:22 +02:00
default
64d3bb7e33 Fixed Link HTML. 2023-07-13 22:32:06 +02:00
default
c4bb189d99 Added support for lemmy-style "Link" attachments. 2023-07-13 22:10:29 +02:00
default
8d7f329007 Updated RELEASE_NOTES. 2023-07-13 21:47:37 +02:00
default
a2874b4b49 Bumped version. 2023-07-13 21:13:37 +02:00
default
a549ff4b0d Updated RELEASE_NOTES. 2023-07-13 21:13:21 +02:00
default
f6401e1c1f Updated documentation. 2023-07-13 21:11:56 +02:00
default
9b19a26408 Increased log level for Announce error requests. 2023-07-13 21:11:49 +02:00
default
2caeb550b9 Added support for the 'Page' ActivityPub object.
So that you can follow and interact with lemmy channels.
2023-07-13 21:01:15 +02:00
default
a05aa969d0 Added a maximum level of recursion to timeline_request(). 2023-07-13 20:19:50 +02:00
default
0bdd1f0420 Always log send status in post_message(). 2023-07-13 18:21:30 +02:00
default
545af948db New function post_message(), to send a message bypassing the output queue.
This is used when accepting Follow requests; this way, follows are
confirmed as fast as possible.

If the message cannot be immediately sent, it's queued as always.
2023-07-13 18:18:23 +02:00
default
137f775605 Minor prototype tweak. 2023-07-13 17:58:18 +02:00
default
5ddde84eaa Version 2.37 RELEASED. 2023-07-13 16:51:04 +02:00
default
76e1608069 Fixed memory leaks. 2023-07-13 10:49:49 +02:00
grunfink
ff8e400e67 Merge pull request 'XSS: Also encode in admin page, and other....' (#65) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/65
2023-07-13 08:42:30 +00:00
Yonle
b428386582 utils.c: Prompt does not need \n 2023-07-12 11:29:01 +07:00
Yonle
5291bb8446 xs_mime.h: .opus mime is audio/ogg 2023-07-12 10:44:08 +07:00
Yonle
2d584d219a html.c: Also encode html characters in admin page 2023-07-12 09:19:04 +07:00
Yonle
47adfa169a activitypub.c: Remove unused variable. 2023-07-12 09:18:57 +07:00
default
a0e813db0a Fixed HTML re-encoding in the user bio. 2023-07-11 20:34:02 +02:00
default
158b360181 When sanitize() is called, encode_html() is no longer needed. 2023-07-11 20:28:24 +02:00
default
28a91ab732 Added new CSS classes snac-embedded-video and snac-embedded-audio. 2023-07-11 20:16:44 +02:00
default
a18c719298 Fixed crash. 2023-07-11 19:58:55 +02:00
default
45d45f6503 Updated RELEASE_NOTES. 2023-07-11 19:48:21 +02:00
default
1c5a689457 Fixed some memory leaks. 2023-07-11 19:45:58 +02:00
grunfink
a5272a21e6 Merge pull request 'Attempt to prevent XSS.' (#64) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/64
2023-07-11 17:11:21 +00:00
Yonle
63741cb66a html.c: Escape XML characters & View unknown type attachment link
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-11 23:08:01 +07:00
grunfink
eb7bee953b Merge pull request 'xs_mime.h: Add various mimetypes for audios & videos' (#63) from yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/63
2023-07-11 11:54:44 +00:00
Yonle
c6e3bca051 xs_mime.h: Add various mimetypes for audios & videos 2023-07-11 18:31:36 +07:00
default
068c8233a1 Updated RELEASE_NOTES. 2023-07-11 06:56:01 +02:00
default
3642cd25e4 Simplified inbox_list(). 2023-07-10 18:04:59 +02:00