projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remerge of hashtag following (#341)
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
schemas
/
tag.ex
diff --git
a/lib/pleroma/web/api_spec/schemas/tag.ex
b/lib/pleroma/web/api_spec/schemas/tag.ex
index e693fb83e25f54c2c1d29a0bd00b84d5de4dc2a5..41b5e5c785277cdfb971f796037f4a608874c0e9 100644
(file)
--- a/
lib/pleroma/web/api_spec/schemas/tag.ex
+++ b/
lib/pleroma/web/api_spec/schemas/tag.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Tag do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Tag do
@@
-17,11
+17,16
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Tag do
type: :string,
format: :uri,
description: "A link to the hashtag on the instance"
type: :string,
format: :uri,
description: "A link to the hashtag on the instance"
+ },
+ following: %Schema{
+ type: :boolean,
+ description: "Whether the authenticated user is following the hashtag"
}
},
example: %{
name: "cofe",
}
},
example: %{
name: "cofe",
- url: "https://lain.com/tag/cofe"
+ url: "https://lain.com/tag/cofe",
+ following: false
}
})
end
}
})
end