From 2bef6b9d6d066158ebd3b88ca21d348db9677584 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 15:54:43 +0200 Subject: [PATCH 01/10] Remove static files --- priv/static/images/avatar.jpg | Bin 37876 -> 0 bytes priv/static/images/banner.jpg | Bin 22671 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 priv/static/images/avatar.jpg delete mode 100644 priv/static/images/banner.jpg diff --git a/priv/static/images/avatar.jpg b/priv/static/images/avatar.jpg deleted file mode 100644 index 3df25a703e942962d6a42bd5d4d5e39472f40fcb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37876 zcmb5VWl&sC&^Nlc1cxQK1PCnl$Adep;EQWWfCPudB@i?af-aWevWr82;0XlR;I6@C zaZj*Zp7*VL>-l>7)SUC7tGasT^z?N1ujk*~zf}MQOdYBYz{0`;Kpr2!zeRuw03R0* z9}gEF9}k~^0H2VUf|!_yh?s_qoP^>j4ISN68d_QgW-e9+Mh+%gS~h+*j_2GUUJyO2 zfRF%>5El=K=YND?5fBg%6B1Js6I1gr&@%A+|E7QK07^ovM65&{tY-jhN-P{otbg4A zW&i+ykAwC2{{QGvSpq^VY#gFTwjl)o3kL@q8~^_h0U-|7BLf$JM~P3xE=)kJr1uIz z^GqZ(DW8x-8D7%?eC-j2ETH8S)vq1rQnB$2UwbO9nq1g<`dm!H!0X$@2_33y{ZTC4 zk9`w2kbaO<(t6GZMH&jfs=is9xXITQL?_$0r_# zjZX_D=UsYdie|!xd7&M^MV+}fE1URiLXBCnF#S2v_+VRjBXoq|GIbc*3j}ov@91-n zdvq>db8y{vQBgMH)bsGNiYie`<+-~2_ayouFcf;X8xhAPl?W?U4J_o7Min-A~;OpPJQfM~} z_vU?K70%tGdU>~DzO=OI;5XPh+n@rj&frw6YANt6J>P-Ok-{sn|r>Ad7cuVltJv5T_xiZj!+C&TW6i z*E5>!@QZj^Ikp~oG8MQ^&y&8v{9eN~N1X=1dgP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ZiOKwFqteXxZT7pu z1IMe8Wqc)~cy3FGNjUwNepKqw>FVvW5IH7Gi5^1&s9mJZLkIMQo=iY+TmuKhC@6fz z9*+7XC2DNsC2DN&?McD>D2ArE3r&LKaZ&=)5<1^0Cm9JD=RqFd-VYB#$iup|2_W(* zZ2|RX_;Xknm(wmqzQ`JS>Xv|Y)$wW?Rn1Ognuz4s;(447G~T~6a=2=zqT5{&oJGof z((2YxhW4_?Qa~gqg)9YNjyQ*d@uPbpmB&llwNY7sBbxP}Akm<{hxr`O8_wWD#!6N{0r4ZV}N!YEUw1NQl(j~zR!+8j~->z;x z-~|zyaV;&*IT&e_gW<=Ad8o@(bfKhlK$zs&fMJ^Ybn*%2!zI<%eHdzR?bK ziYLs9(^+b(o~^vQa=b_`ysij9;D(d;5T3;U0QzYar4;YSXvG7EMlz|Isv8OcN|Z`e zdxE&A{{RkZ$irDN)UFsLk>yphNxoUt5S)s#g`u(n$6?rWQlhT6Bt-RR$ruW)IDgXcg diff --git a/priv/static/images/banner.jpg b/priv/static/images/banner.jpg deleted file mode 100644 index df9b751907c61feba52a43074a8ecb5b186b7ca6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22671 zcmb4qRZyHw(C*^-a1tQ6gb>^d{ zSDlM?9UToF z0|WgHCO#(SfB#_;;^JZBzb7Oic~3}8Oh!phO-4>fK}<};N<;UFfr*)kl$wo`jgga{ zk%{sDC_%!&z`%Ti`3@8F9U~br8RP%Ayz~JG-T-cqK`2Nc0LTPLCZ_n3qoJT7A)}xIklv!b`+&|(K=(zRkk;Id zizg(R=%cs%Bj2S4q<_{fTP7&>zno@(X5p zK@@&{Un<3Ht-n=I7MRxkoLxyV&iG914dFh8LKgDL1#2?R9w2YYlIXZJ=J#$R5zxIn zAr>Pvq9EdH%_>;&NQ}P!Um8Z!g~&@j2F6gw%PZAY`_XX0hZXRSU3ZjS!o9=Q_0D&5=Kv5lzU%bVFFf3#16 zS%DYOR<(L&=n)&cj5^A9K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8w9Myq%5}wZ-?PtuT&KxYZ_`2ViA{M zy}Q5bK-!WYAHuy}s>wM+;9uun04w(%OVEklkjZWr}c=$dl(@UK^^0>Qvgps#y) zkhc;40Ht#z6B$I}Rfsd~uUD!jTG3Xrk>PZPHKFu-1@pj;BJYnC{QGOw>H`gK5r9~H zp`**P{u=vBu-B{APMtW_vJ+*-{vY~PEleyq9yYI6svQ3StMF0P%^;UGk$|{<6_@II zusl~Cah5&@`1n_=)h@UtAce158yAwmzo%_DXi}LMJ6x^vKOdE=)#_!jnzYSX&1vQG z@b2*bv~YD7Vb1h&~NBh2uKbrU;WNNviI_2^d(P#Gt|g>(FC)#|H~gQscmb^S)y zv2EA`=kmYKtVGa;I;^CS8tiELBJ@0e@D%KlU ctJD{TrIqdC1hA@de9QRU2EAUX)2kEz*;I>6Hvj+t From 762914c3c65512bd6ef6c08918e2732fd82141f8 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:04:36 +0200 Subject: [PATCH 02/10] Remove tests --- test/nulla/users_test.exs | 59 ------------- .../controllers/page_controller_test.exs | 8 -- .../controllers/user_controller_test.exs | 84 ------------------- test/support/fixtures/users_fixtures.ex | 20 ----- 4 files changed, 171 deletions(-) delete mode 100644 test/nulla/users_test.exs delete mode 100644 test/nulla_web/controllers/page_controller_test.exs delete mode 100644 test/nulla_web/controllers/user_controller_test.exs delete mode 100644 test/support/fixtures/users_fixtures.ex diff --git a/test/nulla/users_test.exs b/test/nulla/users_test.exs deleted file mode 100644 index 653e5cc..0000000 --- a/test/nulla/users_test.exs +++ /dev/null @@ -1,59 +0,0 @@ -defmodule Nulla.UsersTest do - use Nulla.DataCase - - alias Nulla.Users - - describe "users" do - alias Nulla.Users.User - - import Nulla.UsersFixtures - - @invalid_attrs %{username: nil} - - test "list_users/0 returns all users" do - user = user_fixture() - assert Users.list_users() == [user] - end - - test "get_user!/1 returns the user with given id" do - user = user_fixture() - assert Users.get_user!(user.id) == user - end - - test "create_user/1 with valid data creates a user" do - valid_attrs = %{username: "some username"} - - assert {:ok, %User{} = user} = Users.create_user(valid_attrs) - assert user.username == "some username" - end - - test "create_user/1 with invalid data returns error changeset" do - assert {:error, %Ecto.Changeset{}} = Users.create_user(@invalid_attrs) - end - - test "update_user/2 with valid data updates the user" do - user = user_fixture() - update_attrs = %{username: "some updated username"} - - assert {:ok, %User{} = user} = Users.update_user(user, update_attrs) - assert user.username == "some updated username" - end - - test "update_user/2 with invalid data returns error changeset" do - user = user_fixture() - assert {:error, %Ecto.Changeset{}} = Users.update_user(user, @invalid_attrs) - assert user == Users.get_user!(user.id) - end - - test "delete_user/1 deletes the user" do - user = user_fixture() - assert {:ok, %User{}} = Users.delete_user(user) - assert_raise Ecto.NoResultsError, fn -> Users.get_user!(user.id) end - end - - test "change_user/1 returns a user changeset" do - user = user_fixture() - assert %Ecto.Changeset{} = Users.change_user(user) - end - end -end diff --git a/test/nulla_web/controllers/page_controller_test.exs b/test/nulla_web/controllers/page_controller_test.exs deleted file mode 100644 index 5e8da73..0000000 --- a/test/nulla_web/controllers/page_controller_test.exs +++ /dev/null @@ -1,8 +0,0 @@ -defmodule NullaWeb.PageControllerTest do - use NullaWeb.ConnCase - - test "GET /", %{conn: conn} do - conn = get(conn, ~p"/") - assert html_response(conn, 200) =~ "Peace of mind from prototype to production" - end -end diff --git a/test/nulla_web/controllers/user_controller_test.exs b/test/nulla_web/controllers/user_controller_test.exs deleted file mode 100644 index 2d67f42..0000000 --- a/test/nulla_web/controllers/user_controller_test.exs +++ /dev/null @@ -1,84 +0,0 @@ -defmodule NullaWeb.UserControllerTest do - use NullaWeb.ConnCase - - import Nulla.UsersFixtures - - @create_attrs %{username: "some username"} - @update_attrs %{username: "some updated username"} - @invalid_attrs %{username: nil} - - describe "index" do - test "lists all users", %{conn: conn} do - conn = get(conn, ~p"/users") - assert html_response(conn, 200) =~ "Listing Users" - end - end - - describe "new user" do - test "renders form", %{conn: conn} do - conn = get(conn, ~p"/users/new") - assert html_response(conn, 200) =~ "New User" - end - end - - describe "create user" do - test "redirects to show when data is valid", %{conn: conn} do - conn = post(conn, ~p"/users", user: @create_attrs) - - assert %{id: id} = redirected_params(conn) - assert redirected_to(conn) == ~p"/users/#{id}" - - conn = get(conn, ~p"/users/#{id}") - assert html_response(conn, 200) =~ "User #{id}" - end - - test "renders errors when data is invalid", %{conn: conn} do - conn = post(conn, ~p"/users", user: @invalid_attrs) - assert html_response(conn, 200) =~ "New User" - end - end - - describe "edit user" do - setup [:create_user] - - test "renders form for editing chosen user", %{conn: conn, user: user} do - conn = get(conn, ~p"/users/#{user}/edit") - assert html_response(conn, 200) =~ "Edit User" - end - end - - describe "update user" do - setup [:create_user] - - test "redirects when data is valid", %{conn: conn, user: user} do - conn = put(conn, ~p"/users/#{user}", user: @update_attrs) - assert redirected_to(conn) == ~p"/users/#{user}" - - conn = get(conn, ~p"/users/#{user}") - assert html_response(conn, 200) =~ "some updated username" - end - - test "renders errors when data is invalid", %{conn: conn, user: user} do - conn = put(conn, ~p"/users/#{user}", user: @invalid_attrs) - assert html_response(conn, 200) =~ "Edit User" - end - end - - describe "delete user" do - setup [:create_user] - - test "deletes chosen user", %{conn: conn, user: user} do - conn = delete(conn, ~p"/users/#{user}") - assert redirected_to(conn) == ~p"/users" - - assert_error_sent 404, fn -> - get(conn, ~p"/users/#{user}") - end - end - end - - defp create_user(_) do - user = user_fixture() - %{user: user} - end -end diff --git a/test/support/fixtures/users_fixtures.ex b/test/support/fixtures/users_fixtures.ex deleted file mode 100644 index ae82587..0000000 --- a/test/support/fixtures/users_fixtures.ex +++ /dev/null @@ -1,20 +0,0 @@ -defmodule Nulla.UsersFixtures do - @moduledoc """ - This module defines test helpers for creating - entities via the `Nulla.Users` context. - """ - - @doc """ - Generate a user. - """ - def user_fixture(attrs \\ %{}) do - {:ok, user} = - attrs - |> Enum.into(%{ - username: "some username" - }) - |> Nulla.Users.create_user() - - user - end -end From 182523d36dd745d6ee48c6c592f0d7663ba5c3cf Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:06:24 +0200 Subject: [PATCH 03/10] Remove page_* --- lib/nulla_web/controllers/page_controller.ex | 11 ---------- lib/nulla_web/controllers/page_html.ex | 10 ---------- .../controllers/page_html/home.html.heex | 20 ------------------- 3 files changed, 41 deletions(-) delete mode 100644 lib/nulla_web/controllers/page_controller.ex delete mode 100644 lib/nulla_web/controllers/page_html.ex delete mode 100644 lib/nulla_web/controllers/page_html/home.html.heex diff --git a/lib/nulla_web/controllers/page_controller.ex b/lib/nulla_web/controllers/page_controller.ex deleted file mode 100644 index 76dd567..0000000 --- a/lib/nulla_web/controllers/page_controller.ex +++ /dev/null @@ -1,11 +0,0 @@ -defmodule NullaWeb.PageController do - use NullaWeb, :controller - - def home(conn, _params) do - render(conn, :home, layout: false) - end - - def profile(conn, %{"username" => _username}) do - render(conn, :profile, layout: false) - end -end diff --git a/lib/nulla_web/controllers/page_html.ex b/lib/nulla_web/controllers/page_html.ex deleted file mode 100644 index fbb6c6e..0000000 --- a/lib/nulla_web/controllers/page_html.ex +++ /dev/null @@ -1,10 +0,0 @@ -defmodule NullaWeb.PageHTML do - @moduledoc """ - This module contains pages rendered by PageController. - - See the `page_html` directory for all templates available. - """ - use NullaWeb, :html - - embed_templates "page_html/*" -end diff --git a/lib/nulla_web/controllers/page_html/home.html.heex b/lib/nulla_web/controllers/page_html/home.html.heex deleted file mode 100644 index 6bcfbd1..0000000 --- a/lib/nulla_web/controllers/page_html/home.html.heex +++ /dev/null @@ -1,20 +0,0 @@ -<.flash_group flash={@flash} /> -

-
- -
- -
- -
-
-
-
- -
-
-
- -
-
-
From 9e542bc7909ac1a3e1cbbedefc354a175cc36b00 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:07:04 +0200 Subject: [PATCH 04/10] Add models and migrations --- lib/nulla/activitypub.ex | 41 ++++++- lib/nulla/models/bookmarks.ex | 23 ++++ lib/nulla/models/follow.ex | 19 ++++ lib/nulla/models/hashtag.ex | 19 ++++ lib/nulla/{ => models}/instance_settings.ex | 11 +- lib/nulla/models/media_attachment.ex | 20 ++++ lib/nulla/models/moderation_log.ex | 23 ++++ lib/nulla/models/note.ex | 29 +++++ lib/nulla/models/notification.ex | 22 ++++ lib/nulla/models/session.ex | 21 ++++ lib/nulla/{users => models}/user.ex | 11 +- lib/nulla/users.ex | 106 ------------------ lib/nulla_web.ex | 2 +- lib/nulla_web/controllers/note_controller.ex | 62 ++++++++++ lib/nulla_web/controllers/note_html.ex | 13 +++ .../controllers/note_html/edit.html.heex | 8 ++ .../controllers/note_html/index.html.heex | 23 ++++ .../controllers/note_html/new.html.heex | 8 ++ .../controllers/note_html/note_form.html.heex | 9 ++ .../controllers/note_html/show.html.heex | 15 +++ lib/nulla_web/controllers/user_controller.ex | 10 +- lib/nulla_web/controllers/user_html.ex | 38 +++++++ .../controllers/user_html/show.html.heex | 53 ++++++++- ...250527054942_create_instance_settings.exs} | 4 + .../20250530110822_create_users.exs | 1 - .../20250604083506_create_notes.exs | 18 +++ .../20250606100445_create_bookmarks.exs | 14 +++ .../20250606103230_create_notifications.exs | 18 +++ ...20250606103527_create_moderations_logs.exs | 19 ++++ .../20250606103649_create_hashtags.exs | 14 +++ .../20250606103707_create_follows.exs | 15 +++ .../20250606131715_create_sessions.exs | 17 +++ ...0250606132108_create_media_attachments.exs | 16 +++ 33 files changed, 597 insertions(+), 125 deletions(-) create mode 100644 lib/nulla/models/bookmarks.ex create mode 100644 lib/nulla/models/follow.ex create mode 100644 lib/nulla/models/hashtag.ex rename lib/nulla/{ => models}/instance_settings.ex (64%) create mode 100644 lib/nulla/models/media_attachment.ex create mode 100644 lib/nulla/models/moderation_log.ex create mode 100644 lib/nulla/models/note.ex create mode 100644 lib/nulla/models/notification.ex create mode 100644 lib/nulla/models/session.ex rename lib/nulla/{users => models}/user.ex (80%) delete mode 100644 lib/nulla/users.ex create mode 100644 lib/nulla_web/controllers/note_controller.ex create mode 100644 lib/nulla_web/controllers/note_html.ex create mode 100644 lib/nulla_web/controllers/note_html/edit.html.heex create mode 100644 lib/nulla_web/controllers/note_html/index.html.heex create mode 100644 lib/nulla_web/controllers/note_html/new.html.heex create mode 100644 lib/nulla_web/controllers/note_html/note_form.html.heex create mode 100644 lib/nulla_web/controllers/note_html/show.html.heex rename priv/repo/migrations/{20250527054942_create_instance.exs => 20250527054942_create_instance_settings.exs} (86%) create mode 100644 priv/repo/migrations/20250604083506_create_notes.exs create mode 100644 priv/repo/migrations/20250606100445_create_bookmarks.exs create mode 100644 priv/repo/migrations/20250606103230_create_notifications.exs create mode 100644 priv/repo/migrations/20250606103527_create_moderations_logs.exs create mode 100644 priv/repo/migrations/20250606103649_create_hashtags.exs create mode 100644 priv/repo/migrations/20250606103707_create_follows.exs create mode 100644 priv/repo/migrations/20250606131715_create_sessions.exs create mode 100644 priv/repo/migrations/20250606132108_create_media_attachments.exs diff --git a/lib/nulla/activitypub.ex b/lib/nulla/activitypub.ex index 85647e1..2bea870 100644 --- a/lib/nulla/activitypub.ex +++ b/lib/nulla/activitypub.ex @@ -20,12 +20,12 @@ defmodule Nulla.ActivityPub do indexable: "toot:indexable", attributionDomains: %{"@id" => "toot:attributionDomains", "@type" => "@id"}, Hashtag: "as:Hashtag", - focalPoint: %{"@container" => "@list", "@id" => "toot:focalPoint"} + vcard: "http://www.w3.org/2006/vcard/ns#" ) ] end - @spec ap_user(String.t(), Nulla.Users.User.t()) :: Jason.OrderedObject.t() + @spec ap_user(String.t(), Nulla.Models.User.t()) :: Jason.OrderedObject.t() def ap_user(domain, user) do Jason.OrderedObject.new([ "@context": context(), @@ -81,4 +81,41 @@ defmodule Nulla.ActivityPub do "vcard:Address": user.location ]) end + + @spec note(String.t(), Nulla.Models.User.t(), Nulla.Models.Note.t()) :: Jason.OrderedObject.t() + def note(domain, user, note) do + Jason.OrderedObject.new([ + "@context": [ + "https://www.w3.org/ns/activitystreams", + Jason.OrderedObject.new( + sensitive: "as:sensitive" + ) + ], + id: "https://#{domain}/@#{user.username}/#{note.id}", + type: "Note", + summary: nil, + inReplyTo: nil, + published: note.inserted_at, + url: "https://#{domain}/@#{user.username}/#{note.id}", + attributedTo: "https://#{domain}/@#{user.username}", + to: [ + "https://www.w3.org/ns/activitystreams#Public" + ], + cc: [ + "https://#{domain}/@#{user.username}/followers" + ], + sensetive: false, + content: note.content, + contentMap: Jason.OrderedObject.new( + "#{note.language}": "

@rf@mastodonsocial.ru Вниманию новичкам!

Вам небольшое руководство о том, как импротировать пост, которого нет в вашей ленте.

" + ), + attachment: [ + Jason.OrderedObject.new( + type: "Document", + mediaType: "video/mp4", + url: "https://mastodon.ml/system/media_attachments/files/000/040/494/original/8c06de179c11daea.mp4" + ) + ] + ]) + end end diff --git a/lib/nulla/models/bookmarks.ex b/lib/nulla/models/bookmarks.ex new file mode 100644 index 0000000..b4e7a5b --- /dev/null +++ b/lib/nulla/models/bookmarks.ex @@ -0,0 +1,23 @@ +defmodule Nulla.Models.Bookmark do + use Ecto.Schema + import Ecto.Changeset + import Ecto.Query + alias Nulla.Repo + alias Nulla.Models.Bookmark + + schema "bookmarks" do + field :url, :string + field :user_id, :id + + timestamps(type: :utc_datetime) + end + + @doc false + def changeset(bookmark, attrs) do + bookmark + |> cast(attrs, [:url, :user_id]) + |> validate_required([:url, :user_id]) + end + + def get_all_bookmarks!(user_id), do: Repo.all(from n in Bookmark, where: n.user_id == ^user_id) +end diff --git a/lib/nulla/models/follow.ex b/lib/nulla/models/follow.ex new file mode 100644 index 0000000..0469dbd --- /dev/null +++ b/lib/nulla/models/follow.ex @@ -0,0 +1,19 @@ +defmodule Nulla.Models.Follow do + use Ecto.Schema + import Ecto.Changeset + + schema "follows" do + belongs_to :user, Nulla.Models.User + belongs_to :target, Nulla.Models.User + + timestamps() + end + + @doc false + def changeset(follow, attrs) do + follow + |> cast(attrs, [:user_id, :target_id]) + |> validate_required([:user_id, :target_id]) + |> unique_constraint([:user_id, :target_id]) + end +end diff --git a/lib/nulla/models/hashtag.ex b/lib/nulla/models/hashtag.ex new file mode 100644 index 0000000..0be647d --- /dev/null +++ b/lib/nulla/models/hashtag.ex @@ -0,0 +1,19 @@ +defmodule Nulla.Models.Hashtag do + use Ecto.Schema + import Ecto.Changeset + + schema "hashtags" do + field :tag, :string + field :usage_count, :integer, default: 0 + + timestamps() + end + + @doc false + def changeset(hashtag, attrs) do + hashtag + |> cast(attrs, [:tag, :usage_count]) + |> validate_required([:tag]) + |> unique_constraint(:tag) + end +end diff --git a/lib/nulla/instance_settings.ex b/lib/nulla/models/instance_settings.ex similarity index 64% rename from lib/nulla/instance_settings.ex rename to lib/nulla/models/instance_settings.ex index 3e4f495..96280c1 100644 --- a/lib/nulla/instance_settings.ex +++ b/lib/nulla/models/instance_settings.ex @@ -1,7 +1,8 @@ -defmodule Nulla.InstanceSettings do +defmodule Nulla.Models.InstanceSettings do use Ecto.Schema import Ecto.Changeset alias Nulla.Repo + alias Nulla.Models.InstanceSettings schema "instance_settings" do field :name, :string, default: "Nulla" @@ -10,14 +11,16 @@ defmodule Nulla.InstanceSettings do field :registration, :boolean, default: false field :max_characters, :integer, default: 5000 field :max_upload_size, :integer, default: 50 + field :public_key, :string + field :private_key, :string end @doc false def changeset(instance_settings, attrs) do instance_settings - |> cast(attrs, [:name, :description, :domain, :registration, :max_characters, :max_upload_size]) - |> validate_required([:name, :description, :domain, :registration, :max_characters, :max_upload_size]) + |> cast(attrs, [:name, :description, :domain, :registration, :max_characters, :max_upload_size, :public_key, :private_key]) + |> validate_required([:name, :description, :domain, :registration, :max_characters, :max_upload_size, :public_key, :private_key]) end - def get_instance_settings!, do: Repo.one!(Nulla.InstanceSettings) + def get_instance_settings!, do: Repo.one!(InstanceSettings) end diff --git a/lib/nulla/models/media_attachment.ex b/lib/nulla/models/media_attachment.ex new file mode 100644 index 0000000..9eca245 --- /dev/null +++ b/lib/nulla/models/media_attachment.ex @@ -0,0 +1,20 @@ +defmodule Nulla.Models.MediaAttachment do + use Ecto.Schema + import Ecto.Changeset + + schema "media_attachments" do + field :file, :string + field :mime_type, :string + field :description, :string + + belongs_to :note, Nulla.Models.Note + + timestamps(type: :utc_datetime) + end + + def changeset(media, attrs) do + media + |> cast(attrs, [:note_id, :file, :mime_type, :description]) + |> validate_required([:note_id, :file]) + end +end diff --git a/lib/nulla/models/moderation_log.ex b/lib/nulla/models/moderation_log.ex new file mode 100644 index 0000000..f6d3469 --- /dev/null +++ b/lib/nulla/models/moderation_log.ex @@ -0,0 +1,23 @@ +defmodule Nulla.Models.ModerationLog do + use Ecto.Schema + import Ecto.Changeset + + schema "moderation_logs" do + field :target_type, :string + field :target_id, :string + field :action, :string + field :reason, :string + field :metadata, :map + + belongs_to :moderator, Nulla.Models.User + + timestamps() + end + + @doc false + def changeset(moderation_log, attrs) do + moderation_log + |> cast(attrs, [:moderator_id, :target_type, :target_id, :action, :reason, :metadata]) + |> validate_required([:moderator_id, :target_type, :target_id, :action]) + end +end diff --git a/lib/nulla/models/note.ex b/lib/nulla/models/note.ex new file mode 100644 index 0000000..f4d5960 --- /dev/null +++ b/lib/nulla/models/note.ex @@ -0,0 +1,29 @@ +defmodule Nulla.Models.Note do + use Ecto.Schema + import Ecto.Changeset + import Ecto.Query + alias Nulla.Repo + alias Nulla.Models.Note + + schema "notes" do + field :content, :string + field :visibility, Ecto.Enum, values: [:public, :unlisted, :followers, :private], default: :public + field :sensitive, :boolean, default: false + field :language, :string + field :in_reply_to, :string + + belongs_to :user, Nulla.Models.User + has_many :media_attachments, Nulla.Models.MediaAttachment + + timestamps(type: :utc_datetime) + end + + @doc false + def changeset(note, attrs) do + note + |> cast(attrs, [:content, :visibility, :sensitive, :language, :in_reply_to, :user_id]) + |> validate_required([:content, :visibility, :sensitive, :language, :in_reply_to, :user_id]) + end + + def get_all_notes!(user_id), do: Repo.all(from n in Note, where: n.user_id == ^user_id) +end diff --git a/lib/nulla/models/notification.ex b/lib/nulla/models/notification.ex new file mode 100644 index 0000000..c0d595c --- /dev/null +++ b/lib/nulla/models/notification.ex @@ -0,0 +1,22 @@ +defmodule Nulla.Models.Notification do + use Ecto.Schema + import Ecto.Changeset + + schema "notifications" do + field :type, :string + field :data, :map + field :read, :boolean, default: false + + belongs_to :user, Nulla.Models.User + belongs_to :actor, Nulla.Models.User + + timestamps() + end + + @doc false + def changeset(notification, attrs) do + notification + |> cast(attrs, [:user_id, :actor_id, :type, :data, :read]) + |> validate_required([:user_id, :type]) + end +end diff --git a/lib/nulla/models/session.ex b/lib/nulla/models/session.ex new file mode 100644 index 0000000..c505ad6 --- /dev/null +++ b/lib/nulla/models/session.ex @@ -0,0 +1,21 @@ +defmodule Nulla.Models.Session do + use Ecto.Schema + import Ecto.Changeset + + schema "sessions" do + field :token, :string + field :user_agent, :string + field :ip, :string + + belongs_to :user, Nulla.Models.User + + timestamps(type: :utc_datetime) + end + + def changeset(session, attrs) do + session + |> cast(attrs, [:user_id, :token, :user_agent, :ip]) + |> validate_required([:user_id, :token]) + |> unique_constraint(:token) + end +end diff --git a/lib/nulla/users/user.ex b/lib/nulla/models/user.ex similarity index 80% rename from lib/nulla/users/user.ex rename to lib/nulla/models/user.ex index b03f068..d350ad0 100644 --- a/lib/nulla/users/user.ex +++ b/lib/nulla/models/user.ex @@ -1,13 +1,14 @@ -defmodule Nulla.Users.User do +defmodule Nulla.Models.User do use Ecto.Schema import Ecto.Changeset + alias Nulla.Repo + alias Nulla.Models.User schema "users" do field :username, :string field :email, :string field :password, :string field :is_moderator, :boolean, default: false - field :realname, :string field :bio, :string field :location, :string @@ -24,6 +25,10 @@ defmodule Nulla.Users.User do field :avatar, :string field :banner, :string + has_many :user_sessions, Nulla.Models.Session + has_many :notes, Nulla.Models.Note + has_many :media_attachments, through: [:notes, :media_attachments] + timestamps(type: :utc_datetime) end @@ -33,4 +38,6 @@ defmodule Nulla.Users.User do |> cast(attrs, [:username, :email, :password, :is_moderator, :realname, :bio, :location, :birthday, :fields, :follow_approval, :is_bot, :is_discoverable, :is_indexable, :is_memorial, :private_key, :public_key, :avatar, :banner]) |> validate_required([:username, :email, :password, :is_moderator, :realname, :bio, :location, :birthday, :fields, :follow_approval, :is_bot, :is_discoverable, :is_indexable, :is_memorial, :private_key, :public_key, :avatar, :banner]) end + + def get_user_by_username!(username), do: Repo.get_by!(User, username: username) end diff --git a/lib/nulla/users.ex b/lib/nulla/users.ex deleted file mode 100644 index 292db75..0000000 --- a/lib/nulla/users.ex +++ /dev/null @@ -1,106 +0,0 @@ -defmodule Nulla.Users do - @moduledoc """ - The Users context. - """ - - import Ecto.Query, warn: false - alias Nulla.Repo - - alias Nulla.Users.User - - @doc """ - Returns the list of users. - - ## Examples - - iex> list_users() - [%User{}, ...] - - """ - def list_users do - Repo.all(User) - end - - @doc """ - Gets a single user. - - Raises `Ecto.NoResultsError` if the User does not exist. - - ## Examples - - iex> get_user!(123) - %User{} - - iex> get_user!(456) - ** (Ecto.NoResultsError) - - """ - def get_user!(id), do: Repo.get!(User, id) - - def get_user_by_username!(username), do: Repo.get_by!(User, username: username) - - @doc """ - Creates a user. - - ## Examples - - iex> create_user(%{field: value}) - {:ok, %User{}} - - iex> create_user(%{field: bad_value}) - {:error, %Ecto.Changeset{}} - - """ - def create_user(attrs \\ %{}) do - %User{} - |> User.changeset(attrs) - |> Repo.insert() - end - - @doc """ - Updates a user. - - ## Examples - - iex> update_user(user, %{field: new_value}) - {:ok, %User{}} - - iex> update_user(user, %{field: bad_value}) - {:error, %Ecto.Changeset{}} - - """ - def update_user(%User{} = user, attrs) do - user - |> User.changeset(attrs) - |> Repo.update() - end - - @doc """ - Deletes a user. - - ## Examples - - iex> delete_user(user) - {:ok, %User{}} - - iex> delete_user(user) - {:error, %Ecto.Changeset{}} - - """ - def delete_user(%User{} = user) do - Repo.delete(user) - end - - @doc """ - Returns an `%Ecto.Changeset{}` for tracking user changes. - - ## Examples - - iex> change_user(user) - %Ecto.Changeset{data: %User{}} - - """ - def change_user(%User{} = user, attrs \\ %{}) do - User.changeset(user, attrs) - end -end diff --git a/lib/nulla_web.ex b/lib/nulla_web.ex index 862aea6..9feaa88 100644 --- a/lib/nulla_web.ex +++ b/lib/nulla_web.ex @@ -17,7 +17,7 @@ defmodule NullaWeb do those modules here. """ - def static_paths, do: ~w(assets fonts images favicon.ico robots.txt) + def static_paths, do: ~w(assets files fonts images favicon.ico robots.txt) def router do quote do diff --git a/lib/nulla_web/controllers/note_controller.ex b/lib/nulla_web/controllers/note_controller.ex new file mode 100644 index 0000000..814a1dd --- /dev/null +++ b/lib/nulla_web/controllers/note_controller.ex @@ -0,0 +1,62 @@ +defmodule NullaWeb.NoteController do + use NullaWeb, :controller + + alias Nulla.Notes + alias Nulla.Models.Note + + def index(conn, _params) do + notes = Notes.list_notes() + render(conn, :index, notes: notes) + end + + def new(conn, _params) do + changeset = Notes.change_note(%Note{}) + render(conn, :new, changeset: changeset) + end + + def create(conn, %{"note" => note_params}) do + case Notes.create_note(note_params) do + {:ok, note} -> + conn + |> put_flash(:info, "Note created successfully.") + |> redirect(to: ~p"/notes/#{note}") + + {:error, %Ecto.Changeset{} = changeset} -> + render(conn, :new, changeset: changeset) + end + end + + def show(conn, %{"id" => id}) do + note = Notes.get_note!(id) + render(conn, :show, note: note) + end + + def edit(conn, %{"id" => id}) do + note = Notes.get_note!(id) + changeset = Notes.change_note(note) + render(conn, :edit, note: note, changeset: changeset) + end + + def update(conn, %{"id" => id, "note" => note_params}) do + note = Notes.get_note!(id) + + case Notes.update_note(note, note_params) do + {:ok, note} -> + conn + |> put_flash(:info, "Note updated successfully.") + |> redirect(to: ~p"/notes/#{note}") + + {:error, %Ecto.Changeset{} = changeset} -> + render(conn, :edit, note: note, changeset: changeset) + end + end + + def delete(conn, %{"id" => id}) do + note = Notes.get_note!(id) + {:ok, _note} = Notes.delete_note(note) + + conn + |> put_flash(:info, "Note deleted successfully.") + |> redirect(to: ~p"/notes") + end +end diff --git a/lib/nulla_web/controllers/note_html.ex b/lib/nulla_web/controllers/note_html.ex new file mode 100644 index 0000000..447c9ab --- /dev/null +++ b/lib/nulla_web/controllers/note_html.ex @@ -0,0 +1,13 @@ +defmodule NullaWeb.NoteHTML do + use NullaWeb, :html + + embed_templates "note_html/*" + + @doc """ + Renders a note form. + """ + attr :changeset, Ecto.Changeset, required: true + attr :action, :string, required: true + + def note_form(assigns) +end diff --git a/lib/nulla_web/controllers/note_html/edit.html.heex b/lib/nulla_web/controllers/note_html/edit.html.heex new file mode 100644 index 0000000..3bef388 --- /dev/null +++ b/lib/nulla_web/controllers/note_html/edit.html.heex @@ -0,0 +1,8 @@ +<.header> + Edit Note {@note.id} + <:subtitle>Use this form to manage note records in your database. + + +<.note_form changeset={@changeset} action={~p"/notes/#{@note}"} /> + +<.back navigate={~p"/notes"}>Back to notes diff --git a/lib/nulla_web/controllers/note_html/index.html.heex b/lib/nulla_web/controllers/note_html/index.html.heex new file mode 100644 index 0000000..ffeedbc --- /dev/null +++ b/lib/nulla_web/controllers/note_html/index.html.heex @@ -0,0 +1,23 @@ +<.header> + Listing Notes + <:actions> + <.link href={~p"/notes/new"}> + <.button>New Note + + + + +<.table id="notes" rows={@notes} row_click={&JS.navigate(~p"/notes/#{&1}")}> + <:col :let={note} label="Content">{note.content} + <:action :let={note}> +
+ <.link navigate={~p"/notes/#{note}"}>Show +
+ <.link navigate={~p"/notes/#{note}/edit"}>Edit + + <:action :let={note}> + <.link href={~p"/notes/#{note}"} method="delete" data-confirm="Are you sure?"> + Delete + + + diff --git a/lib/nulla_web/controllers/note_html/new.html.heex b/lib/nulla_web/controllers/note_html/new.html.heex new file mode 100644 index 0000000..4cf47a4 --- /dev/null +++ b/lib/nulla_web/controllers/note_html/new.html.heex @@ -0,0 +1,8 @@ +<.header> + New Note + <:subtitle>Use this form to manage note records in your database. + + +<.note_form changeset={@changeset} action={~p"/notes"} /> + +<.back navigate={~p"/notes"}>Back to notes diff --git a/lib/nulla_web/controllers/note_html/note_form.html.heex b/lib/nulla_web/controllers/note_html/note_form.html.heex new file mode 100644 index 0000000..da6ac0f --- /dev/null +++ b/lib/nulla_web/controllers/note_html/note_form.html.heex @@ -0,0 +1,9 @@ +<.simple_form :let={f} for={@changeset} action={@action}> + <.error :if={@changeset.action}> + Oops, something went wrong! Please check the errors below. + + <.input field={f[:content]} type="text" label="Content" /> + <:actions> + <.button>Save Note + + diff --git a/lib/nulla_web/controllers/note_html/show.html.heex b/lib/nulla_web/controllers/note_html/show.html.heex new file mode 100644 index 0000000..d7f2f70 --- /dev/null +++ b/lib/nulla_web/controllers/note_html/show.html.heex @@ -0,0 +1,15 @@ +<.header> + Note {@note.id} + <:subtitle>This is a note record from your database. + <:actions> + <.link href={~p"/notes/#{@note}/edit"}> + <.button>Edit note + + + + +<.list> + <:item title="Content">{@note.content} + + +<.back navigate={~p"/notes"}>Back to notes diff --git a/lib/nulla_web/controllers/user_controller.ex b/lib/nulla_web/controllers/user_controller.ex index 76e8b80..0f078e0 100644 --- a/lib/nulla_web/controllers/user_controller.ex +++ b/lib/nulla_web/controllers/user_controller.ex @@ -1,21 +1,23 @@ defmodule NullaWeb.UserController do use NullaWeb, :controller - alias Nulla.Users - alias Nulla.InstanceSettings + alias Nulla.Models.User + alias Nulla.Models.Note + alias Nulla.Models.InstanceSettings alias Nulla.ActivityPub def show(conn, %{"username" => username}) do accept = List.first(get_req_header(conn, "accept")) instance_settings = InstanceSettings.get_instance_settings!() domain = instance_settings.domain - user = Users.get_user_by_username!(username) + user = User.get_user_by_username!(username) + notes = Note.get_all_notes!(user.id) if accept in ["application/activity+json", "application/ld+json"] do conn |> put_resp_content_type("application/activity+json") |> json(ActivityPub.ap_user(domain, user)) else - render(conn, :show, user: user, domain: domain, layout: false) + render(conn, :show, domain: domain, user: user, notes: notes, layout: false) end end end diff --git a/lib/nulla_web/controllers/user_html.ex b/lib/nulla_web/controllers/user_html.ex index db0df5b..fe6103e 100644 --- a/lib/nulla_web/controllers/user_html.ex +++ b/lib/nulla_web/controllers/user_html.ex @@ -38,4 +38,42 @@ defmodule NullaWeb.UserHTML do "#{formatted} (#{relative})" end + + def format_note_datetime(datetime) do + Timex.format!(datetime, "{0D} {Mfull} {YYYY}, {h24}:{m}", :strftime) + end + + def format_note_datetime_diff(datetime) do + now = Timex.now() + diff = Timex.diff(now, datetime, :seconds) + + cond do + diff < 60 -> + "now" + + diff < 3600 -> + minutes = div(diff, 60) + "#{minutes}m ago" + + diff < 86400 -> + hours = div(diff, 3600) + "#{hours}h ago" + + diff < 518400 -> + days = div(diff, 86400) + "#{days}d ago" + + diff < 2419200 -> + weeks = div(diff, 604800) + "#{weeks}w ago" + + diff < 28512000 -> + months = Timex.diff(now, datetime, :months) + "#{months}mo ago" + + true -> + years = Timex.diff(now, datetime, :years) + "#{years}y ago" + end + end end diff --git a/lib/nulla_web/controllers/user_html/show.html.heex b/lib/nulla_web/controllers/user_html/show.html.heex index 708842f..9ce9f87 100644 --- a/lib/nulla_web/controllers/user_html/show.html.heex +++ b/lib/nulla_web/controllers/user_html/show.html.heex @@ -10,8 +10,11 @@
- - + +
+ + +
{@user.realname} @@ -26,14 +29,12 @@
<%= @user.location %>
<% end %> - <%= if @user.birthday do %>
<.icon name="hero-cake" class="mt-0.5 h-5 w-5 flex-none" />
<%= format_birthdate(@user.birthday) %>
<% end %> -
<.icon name="hero-calendar" class="mt-0.5 h-5 w-5 flex-none" />
@@ -59,12 +60,54 @@ 31 Followers
-
+ +
+ <%= for note <- @notes do %> +
+
+ +
+
+
+ + <%= @user.realname %> + + + @<%= @user.username %>@<%= @domain %> + +
+
+ <%= case note.visibility do %> + <% :public -> %> + <.icon name="hero-globe-americas" class="h-5 w-5" /> + <% :unlisted -> %> + <.icon name="hero-moon" class="h-5 w-5" /> + <% :followers -> %> + <.icon name="hero-lock-closed" class="h-5 w-5" /> + <% :private -> %> + <.icon name="hero-at-symbol" class="h-5 w-5" /> + <% end %> + <%= format_note_datetime_diff(note.inserted_at) %> +
+
+
+

<%= note.content %>

+
+
+ + + +
+
+
+
+ <% end %> +
diff --git a/priv/repo/migrations/20250527054942_create_instance.exs b/priv/repo/migrations/20250527054942_create_instance_settings.exs similarity index 86% rename from priv/repo/migrations/20250527054942_create_instance.exs rename to priv/repo/migrations/20250527054942_create_instance_settings.exs index 4fe6dc8..b316d05 100644 --- a/priv/repo/migrations/20250527054942_create_instance.exs +++ b/priv/repo/migrations/20250527054942_create_instance_settings.exs @@ -9,6 +9,10 @@ defmodule Nulla.Repo.Migrations.CreateInstanceSettings do add :registration, :boolean, default: false, null: false add :max_characters, :integer, default: 5000, null: false add :max_upload_size, :integer, default: 50, null: false + add :public_key, :string + add :private_key, :string + + timestamps() end end end diff --git a/priv/repo/migrations/20250530110822_create_users.exs b/priv/repo/migrations/20250530110822_create_users.exs index 265c22c..54ab8cb 100644 --- a/priv/repo/migrations/20250530110822_create_users.exs +++ b/priv/repo/migrations/20250530110822_create_users.exs @@ -7,7 +7,6 @@ defmodule Nulla.Repo.Migrations.CreateUsers do add :email, :string add :password, :string add :is_moderator, :boolean, default: false, null: false - add :realname, :string add :bio, :string add :location, :string diff --git a/priv/repo/migrations/20250604083506_create_notes.exs b/priv/repo/migrations/20250604083506_create_notes.exs new file mode 100644 index 0000000..61ce44f --- /dev/null +++ b/priv/repo/migrations/20250604083506_create_notes.exs @@ -0,0 +1,18 @@ +defmodule Nulla.Repo.Migrations.CreateNotes do + use Ecto.Migration + + def change do + create table(:notes) do + add :content, :string + add :visibility, :string, default: "public" + add :sensitive, :boolean, default: false + add :language, :string + add :in_reply_to, :string + add :user_id, references(:users, on_delete: :delete_all) + + timestamps(type: :utc_datetime) + end + + create index(:notes, [:user_id]) + end +end diff --git a/priv/repo/migrations/20250606100445_create_bookmarks.exs b/priv/repo/migrations/20250606100445_create_bookmarks.exs new file mode 100644 index 0000000..810721e --- /dev/null +++ b/priv/repo/migrations/20250606100445_create_bookmarks.exs @@ -0,0 +1,14 @@ +defmodule Nulla.Repo.Migrations.CreateBookmarks do + use Ecto.Migration + + def change do + create table(:bookmarks) do + add :url, :string + add :user_id, references(:users, on_delete: :delete_all) + + timestamps(type: :utc_datetime) + end + + create index(:bookmarks, [:user_id]) + end +end diff --git a/priv/repo/migrations/20250606103230_create_notifications.exs b/priv/repo/migrations/20250606103230_create_notifications.exs new file mode 100644 index 0000000..85ec848 --- /dev/null +++ b/priv/repo/migrations/20250606103230_create_notifications.exs @@ -0,0 +1,18 @@ +defmodule Nulla.Repo.Migrations.CreateNotifications do + use Ecto.Migration + + def change do + create table(:notifications) do + add :user_id, references(:users, on_delete: :delete_all), null: false + add :actor_id, references(:users, on_delete: :nilify_all) + add :type, :string, null: false + add :data, :map + add :read, :boolean, default: false, null: false + + timestamps() + end + + create index(:notifications, [:user_id]) + create index(:notifications, [:actor_id]) + end +end diff --git a/priv/repo/migrations/20250606103527_create_moderations_logs.exs b/priv/repo/migrations/20250606103527_create_moderations_logs.exs new file mode 100644 index 0000000..252231f --- /dev/null +++ b/priv/repo/migrations/20250606103527_create_moderations_logs.exs @@ -0,0 +1,19 @@ +defmodule Nulla.Repo.Migrations.CreateModerationLogs do + use Ecto.Migration + + def change do + create table(:moderation_logs) do + add :moderator_id, references(:users, on_delete: :nilify_all), null: false + add :target_type, :string, null: false + add :target_id, :string, null: false + add :action, :string, null: false + add :reason, :text + add :metadata, :map + + timestamps() + end + + create index(:moderation_logs, [:moderator_id]) + create index(:moderation_logs, [:target_type, :target_id]) + end +end diff --git a/priv/repo/migrations/20250606103649_create_hashtags.exs b/priv/repo/migrations/20250606103649_create_hashtags.exs new file mode 100644 index 0000000..6a155cc --- /dev/null +++ b/priv/repo/migrations/20250606103649_create_hashtags.exs @@ -0,0 +1,14 @@ +defmodule Nulla.Repo.Migrations.CreateHashtags do + use Ecto.Migration + + def change do + create table(:hashtags) do + add :tag, :string, null: false + add :usage_count, :integer, default: 0, null: false + + timestamps() + end + + create unique_index(:hashtags, [:tag]) + end +end diff --git a/priv/repo/migrations/20250606103707_create_follows.exs b/priv/repo/migrations/20250606103707_create_follows.exs new file mode 100644 index 0000000..27f161f --- /dev/null +++ b/priv/repo/migrations/20250606103707_create_follows.exs @@ -0,0 +1,15 @@ +defmodule Nulla.Repo.Migrations.CreateFollows do + use Ecto.Migration + + def change do + create table(:follows) do + add :user_id, references(:users, on_delete: :delete_all), null: false + add :target_id, references(:users, on_delete: :delete_all), null: false + + timestamps() + end + + create unique_index(:follows, [:user_id, :target_id]) + create index(:follows, [:target_id]) + end +end diff --git a/priv/repo/migrations/20250606131715_create_sessions.exs b/priv/repo/migrations/20250606131715_create_sessions.exs new file mode 100644 index 0000000..b11c9fc --- /dev/null +++ b/priv/repo/migrations/20250606131715_create_sessions.exs @@ -0,0 +1,17 @@ +defmodule Nulla.Repo.Migrations.CreateSessions do + use Ecto.Migration + + def change do + create table(:sessions) do + add :user_id, references(:users, on_delete: :delete_all), null: false + add :token, :string, null: false + add :user_agent, :string + add :ip, :string + + timestamps(type: :utc_datetime) + end + + create index(:sessions, [:user_id]) + create unique_index(:sessions, [:token]) + end +end diff --git a/priv/repo/migrations/20250606132108_create_media_attachments.exs b/priv/repo/migrations/20250606132108_create_media_attachments.exs new file mode 100644 index 0000000..0aef7bd --- /dev/null +++ b/priv/repo/migrations/20250606132108_create_media_attachments.exs @@ -0,0 +1,16 @@ +defmodule Nulla.Repo.Migrations.CreateMediaAttachments do + use Ecto.Migration + + def change do + create table(:media_attachments) do + add :note_id, references(:notes, on_delete: :delete_all), null: false + add :file, :string, null: false + add :mime_type, :string + add :description, :string + + timestamps(type: :utc_datetime) + end + + create index(:media_attachments, [:note_id]) + end +end From 1e36317c47a67113538bcf15ccd77806a0d150e2 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:43:20 +0200 Subject: [PATCH 05/10] Move CONTRIBUTING.md to README.md --- CONTRIBUTING.md | 9 --------- README.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index feed8c0..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,9 +0,0 @@ -# Contributing - -## Patches via Email - -You can create a patch with this command `git format-patch -M origin/main` and send it to this [email address](mailto:miraikumiko@disroot.org). Check out this [guide](https://git-send-email.io). - -## Your repository - -You fork this repository and make your changes in the feature branch, then I pull it. diff --git a/README.md b/README.md index 6985540..8771475 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,13 @@ filter keyword #tag user@example.com example.com * Show replies of all followed users * Show replies of this followed users + +## Contributing + +### Patches via Email + +You can create a patch with this command `git format-patch -M origin/main` and send it to this [email address](mailto:miraikumiko@disroot.org). Check out this [guide](https://git-send-email.io). + +### Your repository + +You fork this repository and make your changes in the feature branch, then I pull it. From ab12fb47a80fea41694c594f91494deed33d57f6 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:43:55 +0200 Subject: [PATCH 06/10] Add uploader.ex --- lib/nulla/uploader.ex | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/nulla/uploader.ex diff --git a/lib/nulla/uploader.ex b/lib/nulla/uploader.ex new file mode 100644 index 0000000..9704674 --- /dev/null +++ b/lib/nulla/uploader.ex @@ -0,0 +1,25 @@ +defmodule Nulla.Uploader do + def upload(%Plug.Upload{path: temp_path, filename: original_name}) do + {:ok, binary} = File.read(temp_path) + hash = :crypto.hash(:sha1, binary) |> Base.encode16(case: :lower) + file_type = Path.extname(original_name) + + segments = + hash + |> String.slice(0, 15) + |> String.codepoints() + |> Enum.chunk_every(3) + |> Enum.map(&Enum.join/1) + + filename = String.slice(hash, 15..-1) <> file_type + relative_path = Path.join(segments) <> "/" <> filename + + dest_path = Path.join(["priv/static/files", relative_path]) + + dest_path |> Path.dirname() |> File.mkdir_p!() + + File.write!(dest_path, binary) + + relative_path + end +end From 7d8cb334053a15b53bb2c24fef4ad197a6e5ba02 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Fri, 6 Jun 2025 16:54:05 +0200 Subject: [PATCH 07/10] Update LICENSE --- LICENSE | 233 +------------------------------------------------------- 1 file changed, 4 insertions(+), 229 deletions(-) diff --git a/LICENSE b/LICENSE index 0ea81f1..42fa4fb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,232 +1,7 @@ -GNU GENERAL PUBLIC LICENSE -Version 3, 29 June 2007 +Copyright (c) 2025 Nulla -Copyright © 2007 Free Software Foundation, Inc. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. - -When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - -To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - -TERMS AND CONDITIONS - -0. Definitions. - -“This License” refers to version 3 of the GNU General Public License. - -“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. - -To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. - -A “covered work” means either the unmodified Program or a work based on the Program. - -To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. -The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. - -A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. -You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. - - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. -“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - -All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - -An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. -A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. - -A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. -If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. -THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -16. Limitation of Liability. -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -17. Interpretation of Sections 15 and 16. -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - -END OF TERMS AND CONDITIONS - -How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. - - nulla - Copyright (C) 2025 nulla - - This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - nulla Copyright (C) 2025 nulla - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. - -You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From 4fb1e200f1fb792718c8f9613bbef6c33c5c6583 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Sun, 8 Jun 2025 10:58:48 +0200 Subject: [PATCH 08/10] mix format --- lib/nulla/activitypub.ex | 78 +++++++++++-------- lib/nulla/models/activity.ex | 21 +++++ lib/nulla/models/instance_settings.ex | 22 +++++- lib/nulla/models/note.ex | 6 +- lib/nulla/models/user.ex | 42 +++++++++- lib/nulla/uploader.ex | 2 +- lib/nulla_web/controllers/inbox_controller.ex | 25 ++++++ lib/nulla_web/controllers/user_controller.ex | 2 +- lib/nulla_web/controllers/user_html.ex | 23 ++++-- .../controllers/user_html/show.html.heex | 45 ++++++----- lib/nulla_web/router.ex | 7 +- .../20250607124601_create_activities.exs | 17 ++++ 12 files changed, 221 insertions(+), 69 deletions(-) create mode 100644 lib/nulla/models/activity.ex create mode 100644 lib/nulla_web/controllers/inbox_controller.ex create mode 100644 priv/repo/migrations/20250607124601_create_activities.exs diff --git a/lib/nulla/activitypub.ex b/lib/nulla/activitypub.ex index 2bea870..66a439a 100644 --- a/lib/nulla/activitypub.ex +++ b/lib/nulla/activitypub.ex @@ -25,9 +25,9 @@ defmodule Nulla.ActivityPub do ] end - @spec ap_user(String.t(), Nulla.Models.User.t()) :: Jason.OrderedObject.t() - def ap_user(domain, user) do - Jason.OrderedObject.new([ + @spec user(String.t(), Nulla.Models.User.t()) :: Jason.OrderedObject.t() + def user(domain, user) do + Jason.OrderedObject.new( "@context": context(), id: "https://#{domain}/@#{user.username}", type: "Person", @@ -45,51 +45,52 @@ defmodule Nulla.ActivityPub do indexable: user.is_indexable, published: DateTime.to_iso8601(user.inserted_at), memorial: user.is_memorial, - publicKey: Jason.OrderedObject.new( - id: "https://#{domain}/@#{user.username}#main-key", - owner: "https://#{domain}/@#{user.username}", - publicKeyPem: user.public_key - ), - tag: Enum.map(user.tags, fn tag -> + publicKey: + Jason.OrderedObject.new( + id: "https://#{domain}/@#{user.username}#main-key", + owner: "https://#{domain}/@#{user.username}", + publicKeyPem: user.public_key + ), + tag: + Enum.map(user.tags, fn tag -> Jason.OrderedObject.new( type: "Hashtag", href: "https://#{domain}/tags/#{tag}", name: "##{tag}" ) end), - attachment: Enum.map(user.fields, fn {name, value} -> + attachment: + Enum.map(user.fields, fn {name, value} -> Jason.OrderedObject.new( type: "PropertyValue", name: name, value: value ) end), - endpoints: Jason.OrderedObject.new( - sharedInbox: "https://#{domain}/inbox" - ), - icon: Jason.OrderedObject.new( - type: "Image", - mediaType: MIME.from_path(user.avatar), - url: "https://#{domain}#{user.avatar}" - ), - image: Jason.OrderedObject.new( - type: "Image", - mediaType: MIME.from_path(user.banner), - url: "https://#{domain}#{user.banner}" - ), + endpoints: Jason.OrderedObject.new(sharedInbox: "https://#{domain}/inbox"), + icon: + Jason.OrderedObject.new( + type: "Image", + mediaType: MIME.from_path(user.avatar), + url: "https://#{domain}#{user.avatar}" + ), + image: + Jason.OrderedObject.new( + type: "Image", + mediaType: MIME.from_path(user.banner), + url: "https://#{domain}#{user.banner}" + ), "vcard:bday": user.birthday, "vcard:Address": user.location - ]) + ) end @spec note(String.t(), Nulla.Models.User.t(), Nulla.Models.Note.t()) :: Jason.OrderedObject.t() def note(domain, user, note) do - Jason.OrderedObject.new([ + Jason.OrderedObject.new( "@context": [ "https://www.w3.org/ns/activitystreams", - Jason.OrderedObject.new( - sensitive: "as:sensitive" - ) + Jason.OrderedObject.new(sensitive: "as:sensitive") ], id: "https://#{domain}/@#{user.username}/#{note.id}", type: "Note", @@ -106,16 +107,25 @@ defmodule Nulla.ActivityPub do ], sensetive: false, content: note.content, - contentMap: Jason.OrderedObject.new( - "#{note.language}": "

@rf@mastodonsocial.ru Вниманию новичкам!

Вам небольшое руководство о том, как импротировать пост, которого нет в вашей ленте.

" - ), + contentMap: Jason.OrderedObject.new("#{note.language}": note.content), attachment: [ Jason.OrderedObject.new( type: "Document", - mediaType: "video/mp4", - url: "https://mastodon.ml/system/media_attachments/files/000/040/494/original/8c06de179c11daea.mp4" + mediaType: "#{note.media_attachment.mime_type}", + url: "https://#{domain}/files/#{note.media_attachment.file}" ) ] - ]) + ) + end + + def activity(domain, action) do + Jason.OrderedObject.new( + "@context": "https://www.w3.org/ns/activitystreams", + id: "https://#{domain}/activities/#{action.id}", + type: action.type, + actor: action.actor, + object: action.object, + to: action.to + ) end end diff --git a/lib/nulla/models/activity.ex b/lib/nulla/models/activity.ex new file mode 100644 index 0000000..bf0101e --- /dev/null +++ b/lib/nulla/models/activity.ex @@ -0,0 +1,21 @@ +defmodule Nulla.Models.Activity do + use Ecto.Schema + import Ecto.Changeset + + schema "activities" do + field :type, :string + field :actor, :string + field :object, :map + field :cc, {:array, :string}, default: [] + + timestamps() + end + + @doc false + def changeset(activity, attrs) do + activity + |> cast(attrs, [:type, :actor, :object, :to]) + |> validate_required([:type, :actor, :object]) + |> validate_inclusion(:type, ~w(Create Update Delete Undo Like Announce Follow Accept Reject)) + end +end diff --git a/lib/nulla/models/instance_settings.ex b/lib/nulla/models/instance_settings.ex index 96280c1..5ed8860 100644 --- a/lib/nulla/models/instance_settings.ex +++ b/lib/nulla/models/instance_settings.ex @@ -18,8 +18,26 @@ defmodule Nulla.Models.InstanceSettings do @doc false def changeset(instance_settings, attrs) do instance_settings - |> cast(attrs, [:name, :description, :domain, :registration, :max_characters, :max_upload_size, :public_key, :private_key]) - |> validate_required([:name, :description, :domain, :registration, :max_characters, :max_upload_size, :public_key, :private_key]) + |> cast(attrs, [ + :name, + :description, + :domain, + :registration, + :max_characters, + :max_upload_size, + :public_key, + :private_key + ]) + |> validate_required([ + :name, + :description, + :domain, + :registration, + :max_characters, + :max_upload_size, + :public_key, + :private_key + ]) end def get_instance_settings!, do: Repo.one!(InstanceSettings) diff --git a/lib/nulla/models/note.ex b/lib/nulla/models/note.ex index f4d5960..965e642 100644 --- a/lib/nulla/models/note.ex +++ b/lib/nulla/models/note.ex @@ -7,7 +7,11 @@ defmodule Nulla.Models.Note do schema "notes" do field :content, :string - field :visibility, Ecto.Enum, values: [:public, :unlisted, :followers, :private], default: :public + + field :visibility, Ecto.Enum, + values: [:public, :unlisted, :followers, :private], + default: :public + field :sensitive, :boolean, default: false field :language, :string field :in_reply_to, :string diff --git a/lib/nulla/models/user.ex b/lib/nulla/models/user.ex index d350ad0..cd20f48 100644 --- a/lib/nulla/models/user.ex +++ b/lib/nulla/models/user.ex @@ -35,8 +35,46 @@ defmodule Nulla.Models.User do @doc false def changeset(user, attrs) do user - |> cast(attrs, [:username, :email, :password, :is_moderator, :realname, :bio, :location, :birthday, :fields, :follow_approval, :is_bot, :is_discoverable, :is_indexable, :is_memorial, :private_key, :public_key, :avatar, :banner]) - |> validate_required([:username, :email, :password, :is_moderator, :realname, :bio, :location, :birthday, :fields, :follow_approval, :is_bot, :is_discoverable, :is_indexable, :is_memorial, :private_key, :public_key, :avatar, :banner]) + |> cast(attrs, [ + :username, + :email, + :password, + :is_moderator, + :realname, + :bio, + :location, + :birthday, + :fields, + :follow_approval, + :is_bot, + :is_discoverable, + :is_indexable, + :is_memorial, + :private_key, + :public_key, + :avatar, + :banner + ]) + |> validate_required([ + :username, + :email, + :password, + :is_moderator, + :realname, + :bio, + :location, + :birthday, + :fields, + :follow_approval, + :is_bot, + :is_discoverable, + :is_indexable, + :is_memorial, + :private_key, + :public_key, + :avatar, + :banner + ]) end def get_user_by_username!(username), do: Repo.get_by!(User, username: username) diff --git a/lib/nulla/uploader.ex b/lib/nulla/uploader.ex index 9704674..2abd925 100644 --- a/lib/nulla/uploader.ex +++ b/lib/nulla/uploader.ex @@ -11,7 +11,7 @@ defmodule Nulla.Uploader do |> Enum.chunk_every(3) |> Enum.map(&Enum.join/1) - filename = String.slice(hash, 15..-1) <> file_type + filename = String.slice(hash, 15..-1//1) <> file_type relative_path = Path.join(segments) <> "/" <> filename dest_path = Path.join(["priv/static/files", relative_path]) diff --git a/lib/nulla_web/controllers/inbox_controller.ex b/lib/nulla_web/controllers/inbox_controller.ex new file mode 100644 index 0000000..e4ed4c4 --- /dev/null +++ b/lib/nulla_web/controllers/inbox_controller.ex @@ -0,0 +1,25 @@ +defmodule NullaWeb.InboxController do + use NullaWeb, :controller + + def receive(conn, %{"type" => "Follow"} = activity) do + # Check signature + # Verify actor and object + # Save follow to db + # Send Accept or Reject + json(conn, %{"status" => "Follow received"}) + end + + def receive(conn, %{"type" => "Like"} = activity) do + # Process Like + json(conn, %{"status" => "Like received"}) + end + + def receive(conn, %{"type" => "Create"} = activity) do + # Create object and save + json(conn, %{"status" => "Object created"}) + end + + def receive(conn, _params) do + json(conn, %{"status" => "Unhandled type"}) + end +end diff --git a/lib/nulla_web/controllers/user_controller.ex b/lib/nulla_web/controllers/user_controller.ex index 0f078e0..4c93d99 100644 --- a/lib/nulla_web/controllers/user_controller.ex +++ b/lib/nulla_web/controllers/user_controller.ex @@ -15,7 +15,7 @@ defmodule NullaWeb.UserController do if accept in ["application/activity+json", "application/ld+json"] do conn |> put_resp_content_type("application/activity+json") - |> json(ActivityPub.ap_user(domain, user)) + |> json(ActivityPub.user(domain, user)) else render(conn, :show, domain: domain, user: user, notes: notes, layout: false) end diff --git a/lib/nulla_web/controllers/user_html.ex b/lib/nulla_web/controllers/user_html.ex index fe6103e..2f1ec2f 100644 --- a/lib/nulla_web/controllers/user_html.ex +++ b/lib/nulla_web/controllers/user_html.ex @@ -25,12 +25,19 @@ defmodule NullaWeb.UserHTML do relative = cond do - diff == 0 -> "today" - diff == 1 -> "1 day ago" - diff < 30 -> "#{diff} days ago" + diff == 0 -> + "today" + + diff == 1 -> + "1 day ago" + + diff < 30 -> + "#{diff} days ago" + diff < 365 -> months = Timex.diff(now, date, :months) if months == 1, do: "1 month ago", else: "#{months} months ago" + true -> years = Timex.diff(now, date, :years) if years == 1, do: "1 year ago", else: "#{years} years ago" @@ -46,7 +53,7 @@ defmodule NullaWeb.UserHTML do def format_note_datetime_diff(datetime) do now = Timex.now() diff = Timex.diff(now, datetime, :seconds) - + cond do diff < 60 -> "now" @@ -59,15 +66,15 @@ defmodule NullaWeb.UserHTML do hours = div(diff, 3600) "#{hours}h ago" - diff < 518400 -> + diff < 518_400 -> days = div(diff, 86400) "#{days}d ago" - diff < 2419200 -> - weeks = div(diff, 604800) + diff < 2_419_200 -> + weeks = div(diff, 604_800) "#{weeks}w ago" - diff < 28512000 -> + diff < 28_512_000 -> months = Timex.diff(now, datetime, :months) "#{months}mo ago" diff --git a/lib/nulla_web/controllers/user_html/show.html.heex b/lib/nulla_web/controllers/user_html/show.html.heex index 9ce9f87..9184f8b 100644 --- a/lib/nulla_web/controllers/user_html/show.html.heex +++ b/lib/nulla_web/controllers/user_html/show.html.heex @@ -1,8 +1,14 @@
- +
- +
@@ -12,8 +18,13 @@
- - + +
@@ -27,28 +38,28 @@
<.icon name="hero-map-pin" class="mt-0.5 h-5 w-5 flex-none" />
-
<%= @user.location %>
+
{@user.location}
<% end %> <%= if @user.birthday do %>
<.icon name="hero-cake" class="mt-0.5 h-5 w-5 flex-none" />
-
<%= format_birthdate(@user.birthday) %>
+
{format_birthdate(@user.birthday)}
<% end %>
<.icon name="hero-calendar" class="mt-0.5 h-5 w-5 flex-none" />
-
<%= format_registration_date(@user.inserted_at) %>
+
{format_registration_date(@user.inserted_at)}
<%= if @user.fields do %>
<%= for {key, value} <- @user.fields do %> -
<%= key %>
+
{key}
<%= if Regex.match?(~r{://}, value) do %> - <%= Regex.replace(~r{^\w+://}, value, "") %> + {Regex.replace(~r{^\w+://}, value, "")} <% else %> - <%= value %> + {value} <% end %>
<% end %> @@ -70,15 +81,15 @@ <%= for note <- @notes do %>
- +
- <%= @user.realname %> + {@user.realname} - @<%= @user.username %>@<%= @domain %> + @{@user.username}@{@domain}
@@ -92,11 +103,11 @@ <% :private -> %> <.icon name="hero-at-symbol" class="h-5 w-5" /> <% end %> - <%= format_note_datetime_diff(note.inserted_at) %> + {format_note_datetime_diff(note.inserted_at)}
-

<%= note.content %>

+

{note.content}

@@ -110,8 +121,6 @@
-
- -
+
diff --git a/lib/nulla_web/router.ex b/lib/nulla_web/router.ex index 4f956cd..5af267b 100644 --- a/lib/nulla_web/router.ex +++ b/lib/nulla_web/router.ex @@ -11,13 +11,16 @@ defmodule NullaWeb.Router do end pipeline :api do - plug :accepts, ["json"] + plug :accepts, ["activity+json", "ld+json"] + + post "/inbox", InboxController, :receive + post "/@:username/inbox", InboxController, :receive + get "/@:username/outbox", OutboxController, :index end scope "/", NullaWeb do pipe_through :browser - get "/", PageController, :home get "/@:username", UserController, :show resources "/users", UserController end diff --git a/priv/repo/migrations/20250607124601_create_activities.exs b/priv/repo/migrations/20250607124601_create_activities.exs new file mode 100644 index 0000000..0ed3cf2 --- /dev/null +++ b/priv/repo/migrations/20250607124601_create_activities.exs @@ -0,0 +1,17 @@ +defmodule Nulla.Repo.Migrations.CreateActivities do + use Ecto.Migration + + def change do + create table(:activities) do + add :type, :string, null: false + add :actor, :string, null: false + add :object, :map, null: false + add :to, {:array, :string}, default: [] + + timestamps() + end + + create index(:activities, [:actor]) + create index(:activities, [:type]) + end +end From cd1e5887c5d3e0234bb3e58d91d76fc7d13f98aa Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Sun, 8 Jun 2025 13:32:58 +0200 Subject: [PATCH 09/10] Move templates to components --- .../user_html.ex => components/templates.ex} | 16 +++++++++++++++- .../templates/note}/edit.html.heex | 0 .../templates/note}/index.html.heex | 0 .../templates/note}/new.html.heex | 0 .../templates/note}/note_form.html.heex | 0 .../templates/note}/show.html.heex | 0 .../templates/user}/edit.html.heex | 0 .../templates/user}/index.html.heex | 0 .../templates/user}/new.html.heex | 0 .../templates/user}/show.html.heex | 0 .../templates/user}/user_form.html.heex | 0 lib/nulla_web/controllers/note_html.ex | 13 ------------- 12 files changed, 15 insertions(+), 14 deletions(-) rename lib/nulla_web/{controllers/user_html.ex => components/templates.ex} (86%) rename lib/nulla_web/{controllers/note_html => components/templates/note}/edit.html.heex (100%) rename lib/nulla_web/{controllers/note_html => components/templates/note}/index.html.heex (100%) rename lib/nulla_web/{controllers/note_html => components/templates/note}/new.html.heex (100%) rename lib/nulla_web/{controllers/note_html => components/templates/note}/note_form.html.heex (100%) rename lib/nulla_web/{controllers/note_html => components/templates/note}/show.html.heex (100%) rename lib/nulla_web/{controllers/user_html => components/templates/user}/edit.html.heex (100%) rename lib/nulla_web/{controllers/user_html => components/templates/user}/index.html.heex (100%) rename lib/nulla_web/{controllers/user_html => components/templates/user}/new.html.heex (100%) rename lib/nulla_web/{controllers/user_html => components/templates/user}/show.html.heex (100%) rename lib/nulla_web/{controllers/user_html => components/templates/user}/user_form.html.heex (100%) delete mode 100644 lib/nulla_web/controllers/note_html.ex diff --git a/lib/nulla_web/controllers/user_html.ex b/lib/nulla_web/components/templates.ex similarity index 86% rename from lib/nulla_web/controllers/user_html.ex rename to lib/nulla_web/components/templates.ex index 2f1ec2f..87fc303 100644 --- a/lib/nulla_web/controllers/user_html.ex +++ b/lib/nulla_web/components/templates.ex @@ -1,7 +1,7 @@ defmodule NullaWeb.UserHTML do use NullaWeb, :html - embed_templates "user_html/*" + embed_templates "templates/user/*" @doc """ Renders a user form. @@ -84,3 +84,17 @@ defmodule NullaWeb.UserHTML do end end end + +defmodule NullaWeb.NoteHTML do + use NullaWeb, :html + + embed_templates "templates/note/*" + + @doc """ + Renders a note form. + """ + attr :changeset, Ecto.Changeset, required: true + attr :action, :string, required: true + + def note_form(assigns) +end diff --git a/lib/nulla_web/controllers/note_html/edit.html.heex b/lib/nulla_web/components/templates/note/edit.html.heex similarity index 100% rename from lib/nulla_web/controllers/note_html/edit.html.heex rename to lib/nulla_web/components/templates/note/edit.html.heex diff --git a/lib/nulla_web/controllers/note_html/index.html.heex b/lib/nulla_web/components/templates/note/index.html.heex similarity index 100% rename from lib/nulla_web/controllers/note_html/index.html.heex rename to lib/nulla_web/components/templates/note/index.html.heex diff --git a/lib/nulla_web/controllers/note_html/new.html.heex b/lib/nulla_web/components/templates/note/new.html.heex similarity index 100% rename from lib/nulla_web/controllers/note_html/new.html.heex rename to lib/nulla_web/components/templates/note/new.html.heex diff --git a/lib/nulla_web/controllers/note_html/note_form.html.heex b/lib/nulla_web/components/templates/note/note_form.html.heex similarity index 100% rename from lib/nulla_web/controllers/note_html/note_form.html.heex rename to lib/nulla_web/components/templates/note/note_form.html.heex diff --git a/lib/nulla_web/controllers/note_html/show.html.heex b/lib/nulla_web/components/templates/note/show.html.heex similarity index 100% rename from lib/nulla_web/controllers/note_html/show.html.heex rename to lib/nulla_web/components/templates/note/show.html.heex diff --git a/lib/nulla_web/controllers/user_html/edit.html.heex b/lib/nulla_web/components/templates/user/edit.html.heex similarity index 100% rename from lib/nulla_web/controllers/user_html/edit.html.heex rename to lib/nulla_web/components/templates/user/edit.html.heex diff --git a/lib/nulla_web/controllers/user_html/index.html.heex b/lib/nulla_web/components/templates/user/index.html.heex similarity index 100% rename from lib/nulla_web/controllers/user_html/index.html.heex rename to lib/nulla_web/components/templates/user/index.html.heex diff --git a/lib/nulla_web/controllers/user_html/new.html.heex b/lib/nulla_web/components/templates/user/new.html.heex similarity index 100% rename from lib/nulla_web/controllers/user_html/new.html.heex rename to lib/nulla_web/components/templates/user/new.html.heex diff --git a/lib/nulla_web/controllers/user_html/show.html.heex b/lib/nulla_web/components/templates/user/show.html.heex similarity index 100% rename from lib/nulla_web/controllers/user_html/show.html.heex rename to lib/nulla_web/components/templates/user/show.html.heex diff --git a/lib/nulla_web/controllers/user_html/user_form.html.heex b/lib/nulla_web/components/templates/user/user_form.html.heex similarity index 100% rename from lib/nulla_web/controllers/user_html/user_form.html.heex rename to lib/nulla_web/components/templates/user/user_form.html.heex diff --git a/lib/nulla_web/controllers/note_html.ex b/lib/nulla_web/controllers/note_html.ex deleted file mode 100644 index 447c9ab..0000000 --- a/lib/nulla_web/controllers/note_html.ex +++ /dev/null @@ -1,13 +0,0 @@ -defmodule NullaWeb.NoteHTML do - use NullaWeb, :html - - embed_templates "note_html/*" - - @doc """ - Renders a note form. - """ - attr :changeset, Ecto.Changeset, required: true - attr :action, :string, required: true - - def note_form(assigns) -end From f8bedff9133b6fae5327d6257d44be6c98f6d191 Mon Sep 17 00:00:00 2001 From: miraikumiko Date: Sun, 8 Jun 2025 13:44:23 +0200 Subject: [PATCH 10/10] Update --- lib/nulla/activitypub.ex | 49 ++++++++++++-------- lib/nulla/models/note.ex | 2 + lib/nulla_web/controllers/note_controller.ex | 33 +++++++++++-- lib/nulla_web/router.ex | 2 +- 4 files changed, 61 insertions(+), 25 deletions(-) diff --git a/lib/nulla/activitypub.ex b/lib/nulla/activitypub.ex index 66a439a..2be7a2e 100644 --- a/lib/nulla/activitypub.ex +++ b/lib/nulla/activitypub.ex @@ -85,47 +85,58 @@ defmodule Nulla.ActivityPub do ) end - @spec note(String.t(), Nulla.Models.User.t(), Nulla.Models.Note.t()) :: Jason.OrderedObject.t() - def note(domain, user, note) do + @spec note(String.t(), Nulla.Models.Note.t()) :: Jason.OrderedObject.t() + def note(domain, note) do + attachment = + case note.media_attachments do + [] -> [] + attachments -> + [ + attachment: + Enum.map(attachments, fn att -> + Jason.OrderedObject.new( + type: "Document", + mediaType: att.mime_type, + url: "https://#{domain}/files/#{att.file}" + ) + end) + ] + end + Jason.OrderedObject.new( "@context": [ "https://www.w3.org/ns/activitystreams", Jason.OrderedObject.new(sensitive: "as:sensitive") ], - id: "https://#{domain}/@#{user.username}/#{note.id}", + id: "https://#{domain}/@#{note.user.username}/#{note.id}", type: "Note", summary: nil, inReplyTo: nil, published: note.inserted_at, - url: "https://#{domain}/@#{user.username}/#{note.id}", - attributedTo: "https://#{domain}/@#{user.username}", + url: "https://#{domain}/@#{note.user.username}/#{note.id}", + attributedTo: "https://#{domain}/@#{note.user.username}", to: [ "https://www.w3.org/ns/activitystreams#Public" ], cc: [ - "https://#{domain}/@#{user.username}/followers" + "https://#{domain}/@#{note.user.username}/followers" ], sensetive: false, content: note.content, contentMap: Jason.OrderedObject.new("#{note.language}": note.content), - attachment: [ - Jason.OrderedObject.new( - type: "Document", - mediaType: "#{note.media_attachment.mime_type}", - url: "https://#{domain}/files/#{note.media_attachment.file}" - ) - ] + attachment: attachment ) end - def activity(domain, action) do + @spec activity(String.t(), Nulla.Models.Activity.t()) :: Jason.OrderedObject.t() + def activity(domain, activity) do Jason.OrderedObject.new( "@context": "https://www.w3.org/ns/activitystreams", - id: "https://#{domain}/activities/#{action.id}", - type: action.type, - actor: action.actor, - object: action.object, - to: action.to + id: "https://#{domain}/activities/#{activity.id}", + type: activity.type, + actor: activity.actor, + object: activity.object, + to: activity.to ) end end diff --git a/lib/nulla/models/note.ex b/lib/nulla/models/note.ex index 965e642..57a07e6 100644 --- a/lib/nulla/models/note.ex +++ b/lib/nulla/models/note.ex @@ -29,5 +29,7 @@ defmodule Nulla.Models.Note do |> validate_required([:content, :visibility, :sensitive, :language, :in_reply_to, :user_id]) end + def get_note!(id), do: Repo.get!(Note, id) + def get_all_notes!(user_id), do: Repo.all(from n in Note, where: n.user_id == ^user_id) end diff --git a/lib/nulla_web/controllers/note_controller.ex b/lib/nulla_web/controllers/note_controller.ex index 814a1dd..ae4516a 100644 --- a/lib/nulla_web/controllers/note_controller.ex +++ b/lib/nulla_web/controllers/note_controller.ex @@ -1,8 +1,9 @@ defmodule NullaWeb.NoteController do use NullaWeb, :controller - - alias Nulla.Notes + alias Nulla.Repo alias Nulla.Models.Note + alias Nulla.Models.InstanceSettings + alias Nulla.ActivityPub def index(conn, _params) do notes = Notes.list_notes() @@ -26,11 +27,33 @@ defmodule NullaWeb.NoteController do end end - def show(conn, %{"id" => id}) do - note = Notes.get_note!(id) - render(conn, :show, note: note) + def show(conn, %{"username" => username, "note_id" => note_id}) do + accept = List.first(get_req_header(conn, "accept")) + instance_settings = InstanceSettings.get_instance_settings!() + domain = instance_settings.domain + note = Note.get_note!(note_id) |> Repo.preload([:user, :media_attachments]) + + if username != note.user.username do + conn + |> put_status(:not_found) + |> json(%{error: "Note not found"}) + |> halt() + end + + if accept in ["application/activity+json", "application/ld+json"] do + conn + |> put_resp_content_type("application/activity+json") + |> json(ActivityPub.note(domain, note)) + else + render(conn, :show, domain: domain, note: note, layout: false) + end end + #def show(conn, %{"id" => id}) do + # note = Notes.get_note!(id) + # render(conn, :show, note: note) + #end + def edit(conn, %{"id" => id}) do note = Notes.get_note!(id) changeset = Notes.change_note(note) diff --git a/lib/nulla_web/router.ex b/lib/nulla_web/router.ex index 5af267b..783534f 100644 --- a/lib/nulla_web/router.ex +++ b/lib/nulla_web/router.ex @@ -22,7 +22,7 @@ defmodule NullaWeb.Router do pipe_through :browser get "/@:username", UserController, :show - resources "/users", UserController + get "/@:username/:note_id", NoteController, :show end # Other scopes may use custom stacks.