Commit graph

33 commits

Author SHA1 Message Date
ba3fe30318 Point org-social links to git.andros.dev 2026-08-20 10:24:10 +02:00
21e329cd85 Serve with gunicorn instead of the Flask dev server
2 gthread workers with 4 threads each and a 60s timeout, matching the
remote feed fetches. python app.py keeps working for local development.
2026-06-03 10:02:37 +02:00
08c3cfe15c Do not split posts on ** lines inside org blocks
A post containing an org example in a #+BEGIN_SRC block (e.g. the :BOT:
chess example) was cut in half: the '**' lines of the example were
parsed as new post headers, truncating the code block and creating
phantom posts. Skip header matches inside #+BEGIN_.../#+END_... ranges.

Also accept src blocks with no language or with header args
(:results ...) in the code block extraction.
2026-06-03 10:02:36 +02:00
15a4f52f14 Honor PINNED, scheduled posts and mention visibility in blog (spec 1.5-1.7)
- Hide posts with a future ID (scheduled posts) from the blog.
- Hide :VISIBILITY: mention posts from the public blog, except when the
  post has :GROUP:, where visibility does not apply.
- Extract #+PINNED: and show the pinned post first with an indicator.
- :BOT: posts already render their body as a regular post and the
  property is never displayed, as the spec requires.
2026-06-03 09:56:16 +02:00
23a6aac850 Fix header parsing for case-insensitive keywords and empty values
Org-mode keywords, property drawers and headings are case-insensitive,
but the parser only matched uppercase, so feeds using #+title: or
* posts lost all metadata or posts. Also, \s* after the keyword colon
crossed newlines, so an empty #+DESCRIPTION: captured the next line
(e.g. '* Posts' or a #+FOLLOW: URL) as the description. Match with
IGNORECASE, restrict post-colon whitespace to spaces/tabs, and
normalize property names to uppercase.
2026-06-03 09:55:43 +02:00
c2785ae2a9 org-social-live-preview: fix +0200 decoded as space
Query-string parsers decode + as space, so a post URL fragment like
+0200 arrives as " 0200", causing find_post_by_id to fail with 404.
Normalize spaces back to + in parse_post_url before searching.
2026-06-03 09:37:54 +02:00
d78da4f001 Expose relay RSS feed in blog header 2026-04-26 08:53:04 +02:00
a4c1b6b354 Fix post content parsing for drawer-only posts 2026-04-26 08:38:07 +02:00
567065c87c Add /blog/<nick> route to render a single-page blog from host.org-social.org 2026-04-26 08:22:55 +02:00
cff955b2cc Replace link emoji with calendar and fix mention spacing
- Changed 🔗 to 📅 for post timestamp display
- Fixed org-social mention links to include space after username
  Prevents text from being concatenated with the mention link
2026-02-27 09:45:21 +01:00
d230b81019 Update footer links to point to org-social.org
Changed all GitHub repository links to https://org-social.org/ in both post and welcome templates.
2026-02-27 09:40:02 +01:00
815ce11f98 Support Org Social post ID in header format
Updates parser to handle both post ID formats per updated specification:
- ID in header: ** 2026-02-27T09:06:21+0100
- ID in properties: :ID: timestamp

Header ID takes priority when both are present. Fixes 404 errors for posts using the new header format.
2026-02-27 09:38:04 +01:00
8c1d5e54be Update Contributing section with contribution guidelines link 2026-02-23 09:57:36 +01:00
Andros Fenollosa
6ce6c6f406 Added images 2025-10-10 10:48:52 +02:00
Andros Fenollosa
c748042f86 Minor bug 2025-10-05 15:46:00 +02:00
Andros Fenollosa
1dd4b0b07d Updated welcome 2025-10-05 15:44:28 +02:00
Andros Fenollosa
dd72b404ea Added example 2025-10-05 15:34:18 +02:00
Andros Fenollosa
b270d80d00
Add restart policy to org-social-live-preview service 2025-10-05 15:25:04 +02:00
Andros Fenollosa
e0d9493642 First commit 2025-10-05 11:49:05 +02:00
Andros Fenollosa
cba87c3d0e Updated README 2025-09-16 10:31:56 +02:00
Andros Fenollosa
2b83f97a9b Updated docker information 2025-09-15 09:13:35 +02:00
Andros Fenollosa
f1cf28fe6c Added entrypoint 2025-09-15 09:04:43 +02:00
Andros Fenollosa
0572060b23 Fixed folder 2025-09-15 09:01:59 +02:00
Andros Fenollosa
eae079b9ab Fixed permissions 2025-09-15 08:58:54 +02:00
Andros Fenollosa
c24223c301 Added screenshot and mood 2025-09-15 08:45:24 +02:00
Andros Fenollosa
87d9b31521 Updated 2025-09-15 08:38:40 +02:00
Andros Fenollosa
fd846314c4 Added README 2025-09-15 08:36:30 +02:00
Andros Fenollosa
028423e123 Format 2025-09-15 08:23:19 +02:00
Andros Fenollosa
cdd9b438db Updated compose 2025-09-15 08:21:51 +02:00
Andros Fenollosa
a8785f8e0e
Merge pull request #1 from AdsanTheGreat/main
Open Graph Protocol implementation for embeds
2025-09-15 07:41:51 +02:00
AdsanTheGreat
f8e0b2fbec Add OGP preview metadata 2025-09-15 01:55:08 +02:00
AdsanTheGreat
d961ba9692 add .gitignore 2025-09-15 01:53:50 +02:00
Andros Fenollosa
5e70af512a First commit 2025-09-14 10:36:19 +02:00