Commit graph

438 commits

Author SHA1 Message Date
Cassio Zen
a339ff93b1 Minor styling tweaks: piccalil.li's modern CSS Reset swyx.io's 100 Bytes of CSS to look great everywhere 2022-11-09 20:39:27 +01:00
Thomas Sileo
afd253a1b4 Fix OG image URL 2022-11-09 09:29:25 +01:00
Thomas Sileo
509e10e79b Fix active URL in the navbar 2022-11-09 08:15:29 +01:00
Thomas Sileo
d96ec913d4 Add support for displaying events from Mobilizon 2022-11-07 20:35:23 +01:00
Thomas Sileo
530491ff10 Fix typing 2022-11-07 18:53:45 +01:00
Kevin Wallace
48740ea8cb Allow templates to be overridden in data/templates/
I'd like to customize my instance's theme beyond what's possible with
_theme.scss.  This patch would allow me to do that, and keep my changes
self-contained in data/ without maintaining a local patchset over
app/templates/.

For utils.html, I've also added scoped blocks around the body of every
macro.  This allows the macros to be overridden individually in
data/templates/utils.html, without copying the whole file.  For example,
to only override the display of a specific actor's name/icon:

    {% extends "app/utils.html" %}
    {% block display_actor %}
    {% if actor.ap_id == "https://me.example.com" %}
    <!-- custom actor display -->
    {% else %}
    {{ super() }}
    {% endif %}
    {% endblock %}
2022-11-07 18:46:21 +01:00
Thomas Sileo
0d7c121781 Fix formatting 2022-11-06 16:57:04 +01:00
Kevin Wallace
a4cfd65009 Sign media URLs to avoid becoming an open proxy
Signatures are valid for ~1 week.
2022-11-04 19:36:26 +01:00
Thomas Sileo
540b9d1470 Minor tweaks about non-root handling 2022-11-04 19:28:21 +01:00
Kevin Wallace
1c076049cf Fix URL generation when not at domain root 2022-11-04 19:22:30 +01:00
Kevin Wallace
242bf7b515 fixup! Fix URL generation when not at domain root
Oops -- missed these two!  Sorry for the noise; let me know if you'd
like me to squash and resubmit.
2022-11-04 19:22:30 +01:00
Kevin Wallace
2843155501 Allow actor id to be specified in config
This is useful if the actor won't be at the root of the domain.
2022-11-04 19:22:30 +01:00
Thomas Sileo
0badf0bc1f Fix permalink for Questions 2022-11-03 22:38:29 +01:00
Thomas Sileo
32692a7dcd First shot at supporting custom handler 2022-11-02 08:51:21 +01:00
Thomas Sileo
b6f0cd01d3 Less HTML restrictions for local content 2022-10-30 18:47:24 +01:00
Thomas Sileo
c985dd84c3 Add slugify helper 2022-10-30 17:51:57 +01:00
Thomas Sileo
3d049da2e5 Add slug support for Article 2022-10-30 17:50:59 +01:00
Thomas Sileo
3729500e3e Improve Block support 2022-10-23 16:37:32 +02:00
Thomas Sileo
2853bf2a28 Fix tag dedup 2022-10-20 19:39:55 +02:00
Thomas Sileo
0144a1c0d4 Tweak Mistletoe autolink 2022-10-19 21:09:30 +02:00
Thomas Sileo
d93bcf6128 Complete the switch to mistletoe 2022-10-19 20:46:01 +02:00
Thomas Sileo
f50a233ce9 Improved Block support 2022-10-18 21:39:09 +02:00
Thomas Sileo
8e7fbcc501 Tweak actor refresh 2022-10-11 20:49:06 +02:00
Thomas Sileo
b5b56e9ed5 More actor refresh improvements 2022-10-09 11:36:00 +02:00
Thomas Sileo
9a36b0edf5 Fix conversation processing 2022-10-07 19:50:14 +02:00
Thomas Sileo
20f996d165 Tweak HTTP sig handling 2022-10-07 19:00:18 +02:00
Thomas Sileo
602da69083 Support actor refresh while checking HTTP sig 2022-10-07 12:05:28 +02:00
Thomas Sileo
f6cfe06f66 Force refresh actor once in a while 2022-10-07 08:55:05 +02:00
Thomas Sileo
c8a9793638 Make hashtag case insensitive 2022-10-05 20:27:21 +02:00
Thomas Sileo
5eaa0f291b More Markdown improvements 2022-10-05 20:05:16 +02:00
Thomas Sileo
881d0ad899 Switch Markdown parser 2022-10-04 20:26:01 +02:00
Thomas Sileo
5a20b9d23a More CSS tweaks for the in reply to section 2022-10-03 20:05:06 +02:00
Thomas Sileo
919a61f75d Tweak in reply to link 2022-10-03 19:21:08 +02:00
Miguel Jacq
7faa4655f8 Make 'in reply to' more user-friendly by hiding the URL behind object type 2022-10-03 19:12:28 +02:00
Thomas Sileo
cf6a891349 Improve/fix non-media attachment display 2022-09-30 09:07:07 +02:00
Thomas Sileo
58b383ba4e Don't try to contact onion services 2022-09-29 09:16:35 +02:00
Thomas Sileo
57fc5ef913 Improve OG meta processing 2022-09-29 09:10:05 +02:00
Thomas Sileo
572a84b4bd Fix/imprive Undo support 2022-09-29 08:41:24 +02:00
Thomas Sileo
992cd55d7b Tweak processing 2022-09-26 21:41:34 +02:00
Thomas Sileo
6216b316e8 Add remote interaction button 2022-09-23 20:09:05 +02:00
Thomas Sileo
96eae971b8 Prevent processing duplicate objects 2022-09-23 09:13:59 +02:00
Thomas Sileo
928bdafeea Tweak Create processing for CacheFile 2022-09-23 09:01:50 +02:00
Thomas Sileo
dc89aeb70b Fix permalink 2022-09-23 09:00:23 +02:00
Thomas Sileo
25d3daa6d2 Improve inbox delete side effects 2022-09-22 19:56:36 +02:00
Thomas Sileo
cb5d21baeb More admin profile related tweaks 2022-09-21 21:00:17 +02:00
Thomas Sileo
8d0b5d1114 Fix double profile button in the admin 2022-09-21 19:35:48 +02:00
Thomas Sileo
4fcf585c23 Fix OG meta display 2022-09-20 20:15:59 +02:00
Thomas Sileo
6873ede288 Tweak CSS 2022-09-20 20:00:35 +02:00
Thomas Sileo
e0ad21f335 Drop View activities 2022-09-20 12:22:00 +02:00
Thomas Sileo
b3f25e7da1 Improve replies counter for out-of-order replies 2022-09-19 21:16:09 +02:00
Thomas Sileo
d44c8a58aa More improvements for the replies counter 2022-09-19 20:46:05 +02:00
Thomas Sileo
54aa2f51f4 Improve replies counter handling 2022-09-19 20:31:54 +02:00
Thomas Sileo
3305d489ec Fix tag parsing for actors 2022-09-19 19:33:44 +02:00
Thomas Sileo
9093659b0a Tweak error wording 2022-09-16 18:37:09 +02:00
Thomas Sileo
b99552384c Improve expired session and CSRF error handling 2022-09-16 18:14:50 +02:00
Miguel Jacq
c30033c19e Fix minor grammatical issues, mostly in docs 2022-09-16 08:52:43 +02:00
Thomas Sileo
4e1e4d0ea8 Tweak actor update 2022-09-15 22:19:01 +02:00
Thomas Sileo
110f7df962 Fix GIF upload handling 2022-09-14 08:38:54 +02:00
Thomas Sileo
4c86cd4be3 Always show followers/following page when admin 2022-09-13 22:33:20 +02:00
Thomas Sileo
b2f268682c New config item to hide followers/following 2022-09-13 21:03:35 +02:00
Thomas Sileo
567595bb4b Tweak inbox processing 2022-09-13 21:03:11 +02:00
Thomas Sileo
91b8bb26b7 Bugfixes 2022-09-13 21:02:47 +02:00
Thomas Sileo
bd4d5a004a Improve Announce handling 2022-09-13 07:59:35 +02:00
Thomas Sileo
04da8725ed Improve fetch 2022-09-12 08:04:16 +02:00
Thomas Sileo
c1231245a4 Complete self-destruct support 2022-09-11 10:51:08 +02:00
Thomas Sileo
0f20a1d12f Allow to post note with attachments and a CW 2022-09-08 22:20:16 +02:00
Thomas Sileo
a701d3b06e Improve move support 2022-09-08 20:00:02 +02:00
Thomas Sileo
333fa5dc40 Add new notification type for Move activities 2022-09-07 22:21:12 +02:00
Thomas Sileo
032632c4dc Fix template 2022-09-07 21:54:56 +02:00
Thomas Sileo
3641aa0adc Improve movedTo support 2022-09-07 21:29:09 +02:00
Thomas Sileo
eba868e8e5 Fix admin delete in the UI 2022-09-07 19:45:34 +02:00
Thomas Sileo
70120647c2 Tweak Move and outbox prefetch 2022-09-05 21:41:22 +02:00
Thomas Sileo
e454e8fe84 Tweak admin login logic 2022-09-04 09:24:58 +02:00
Thomas Sileo
f7671f0585 Process EXIF orientation for uploaded files 2022-09-03 10:15:37 +02:00
Thomas Sileo
d5c27287af Fix admin in reply to link 2022-09-01 21:00:14 +02:00
Thomas Sileo
5f20eab3f1 More work towards support moving/deleting instance 2022-09-01 20:42:20 +02:00
Thomas Sileo
b03daf1274 Fix in reply to link 2022-09-01 20:32:32 +02:00
Thomas Sileo
6e3066bd9b Fix support for multi-codepoints emoji 2022-09-01 12:23:23 +02:00
Thomas Sileo
0175f21273 Fix mentionify 2022-08-31 19:44:40 +02:00
Thomas Sileo
6384dbcd93 Re-add support for custom emoji 2022-08-31 19:16:03 +02:00
Miguel Jacq
c740813b57 Ensure pinned posts appear on front page before others 2022-08-31 08:19:47 +02:00
Josh Washburne
0ef2f1f89d Remove surrounding whitespace before processing query
Ran into this issue twice quite by accident with fat-fingering copy/paste on
my phone. If there is any whitespace in front of or trailing after the
lookup query, it returns an "Unexpected error". Stripping the string is the
quick and dirty way to clean it.

I hate modifying the same function argument name in place like that, but it
is valid Python. If you want me to assign it to a separate variable and
replace all the references of "query", let me know.

Thanks!
2022-08-31 08:16:32 +02:00
Thomas Sileo
6d933863d2 Fix outbox delete side effects 2022-08-30 20:05:10 +02:00
Thomas Sileo
8fe6cc9b9d Fix the delete button 2022-08-30 19:09:51 +02:00
Thomas Sileo
4cb499e44d Fix form for new objects 2022-08-30 08:51:02 +02:00
Miguel Jacq
95745374cd 'followers-only' posts are not necessarily deleted, but may not be viewable to the signed-in actor 2022-08-30 08:21:11 +02:00
Miguel Jacq
db8f0cb141 Harden the CSP a bit for values that don't inherit default-src. Set Permissions-Policy. Remove TODO 2022-08-30 08:21:11 +02:00
Thomas Sileo
ebdba62a06 No more inline CSS 2022-08-29 21:42:54 +02:00
Thomas Sileo
2fb85e138e Remove inlined JS 2022-08-29 20:11:31 +02:00
Thomas Sileo
a02c8cf0bb Fix NGINX setup instructions 2022-08-29 19:28:54 +02:00
Thomas Sileo
ee5265f4dd Small tweaks/typos 2022-08-29 09:09:28 +02:00
Thomas Sileo
39ca3ed7e2 Revert CSS changes 2022-08-28 19:53:11 +02:00
Thomas Sileo
c67db749dc Tweak CSS 2022-08-28 19:35:51 +02:00
Thomas Sileo
fc0445fcec Add missing template 2022-08-28 19:32:05 +02:00
Thomas Sileo
1a7e9e4565 Fix OG metadata processing 2022-08-28 19:05:06 +02:00
Thomas Sileo
87f035d298 HTML error page 2022-08-28 17:36:58 +02:00
Thomas Sileo
651682829a Tweak worker shutdown 2022-08-28 12:05:44 +02:00
Thomas Sileo
3f85c851be More share dedup tweak 2022-08-28 11:39:44 +02:00
Thomas Sileo
333e367a5b Improve debug mode 2022-08-28 11:24:46 +02:00
Thomas Sileo
09cdef118c Fix share dedup 2022-08-27 17:28:53 +02:00