Add way to update most recent notification id.
This commit is contained in:
parent
5d8352a429
commit
e343c0c9c4
4 changed files with 41 additions and 1 deletions
|
|
@ -46,6 +46,12 @@ defmodule Pleroma.User do
|
|||
|> validate_required([:following])
|
||||
end
|
||||
|
||||
def info_changeset(struct, params \\ %{}) do
|
||||
struct
|
||||
|> cast(params, [:info])
|
||||
|> validate_required([:info])
|
||||
end
|
||||
|
||||
def user_info(%User{} = user) do
|
||||
note_count_query = from a in Object,
|
||||
where: fragment("? @> ?", a.data, ^%{actor: user.ap_id, type: "Note"}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue