Browse Source

add license boilerplate to pleroma core

tags/v0.9.9
William Pitcock 5 years ago
parent
commit
2791ce9a1f
100 changed files with 400 additions and 0 deletions
  1. +4
    -0
      lib/pleroma/PasswordResetToken.ex
  2. +4
    -0
      lib/pleroma/activity.ex
  3. +4
    -0
      lib/pleroma/application.ex
  4. +4
    -0
      lib/pleroma/captcha/captcha.ex
  5. +4
    -0
      lib/pleroma/captcha/captcha_service.ex
  6. +4
    -0
      lib/pleroma/captcha/kocaptcha.ex
  7. +4
    -0
      lib/pleroma/config.ex
  8. +4
    -0
      lib/pleroma/emails/mailer.ex
  9. +4
    -0
      lib/pleroma/emails/user_email.ex
  10. +4
    -0
      lib/pleroma/emoji.ex
  11. +4
    -0
      lib/pleroma/filter.ex
  12. +4
    -0
      lib/pleroma/formatter.ex
  13. +4
    -0
      lib/pleroma/gopher/server.ex
  14. +4
    -0
      lib/pleroma/html.ex
  15. +4
    -0
      lib/pleroma/http/connection.ex
  16. +4
    -0
      lib/pleroma/http/http.ex
  17. +4
    -0
      lib/pleroma/http/request_builder.ex
  18. +4
    -0
      lib/pleroma/list.ex
  19. +4
    -0
      lib/pleroma/mime.ex
  20. +4
    -0
      lib/pleroma/notification.ex
  21. +4
    -0
      lib/pleroma/object.ex
  22. +4
    -0
      lib/pleroma/plugs/admin_secret_authentication_plug.ex
  23. +4
    -0
      lib/pleroma/plugs/authentication_plug.ex
  24. +4
    -0
      lib/pleroma/plugs/basic_auth_decoder_plug.ex
  25. +4
    -0
      lib/pleroma/plugs/digest.ex
  26. +4
    -0
      lib/pleroma/plugs/ensure_authenticated_plug.ex
  27. +4
    -0
      lib/pleroma/plugs/ensure_user_key_plug.ex
  28. +4
    -0
      lib/pleroma/plugs/federating_plug.ex
  29. +4
    -0
      lib/pleroma/plugs/http_security_plug.ex
  30. +4
    -0
      lib/pleroma/plugs/http_signature.ex
  31. +4
    -0
      lib/pleroma/plugs/instance_static.ex
  32. +4
    -0
      lib/pleroma/plugs/legacy_authentication_plug.ex
  33. +4
    -0
      lib/pleroma/plugs/oauth_plug.ex
  34. +4
    -0
      lib/pleroma/plugs/session_authentication_plug.ex
  35. +4
    -0
      lib/pleroma/plugs/set_user_session_id_plug.ex
  36. +4
    -0
      lib/pleroma/plugs/uploaded_media.ex
  37. +4
    -0
      lib/pleroma/plugs/user_enabled_plug.ex
  38. +4
    -0
      lib/pleroma/plugs/user_fetcher_plug.ex
  39. +4
    -0
      lib/pleroma/plugs/user_is_admin_plug.ex
  40. +4
    -0
      lib/pleroma/repo.ex
  41. +4
    -0
      lib/pleroma/reverse_proxy.ex
  42. +4
    -0
      lib/pleroma/stats.ex
  43. +4
    -0
      lib/pleroma/upload.ex
  44. +4
    -0
      lib/pleroma/upload/filter.ex
  45. +4
    -0
      lib/pleroma/upload/filter/anonymize_filename.ex
  46. +4
    -0
      lib/pleroma/upload/filter/dedupe.ex
  47. +4
    -0
      lib/pleroma/upload/filter/mogrifun.ex
  48. +4
    -0
      lib/pleroma/upload/filter/mogrify.ex
  49. +4
    -0
      lib/pleroma/uploaders/local.ex
  50. +4
    -0
      lib/pleroma/uploaders/mdii.ex
  51. +4
    -0
      lib/pleroma/uploaders/s3.ex
  52. +4
    -0
      lib/pleroma/uploaders/swift/keystone.ex
  53. +4
    -0
      lib/pleroma/uploaders/swift/swift.ex
  54. +4
    -0
      lib/pleroma/uploaders/swift/uploader.ex
  55. +4
    -0
      lib/pleroma/uploaders/uploader.ex
  56. +4
    -0
      lib/pleroma/user.ex
  57. +4
    -0
      lib/pleroma/user/info.ex
  58. +4
    -0
      lib/pleroma/user_invite_token.ex
  59. +4
    -0
      lib/pleroma/web/activity_pub/activity_pub.ex
  60. +4
    -0
      lib/pleroma/web/activity_pub/activity_pub_controller.ex
  61. +4
    -0
      lib/pleroma/web/activity_pub/mrf.ex
  62. +4
    -0
      lib/pleroma/web/activity_pub/mrf/drop_policy.ex
  63. +4
    -0
      lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex
  64. +4
    -0
      lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex
  65. +4
    -0
      lib/pleroma/web/activity_pub/mrf/noop_policy.ex
  66. +4
    -0
      lib/pleroma/web/activity_pub/mrf/normalize_markup.ex
  67. +4
    -0
      lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
  68. +4
    -0
      lib/pleroma/web/activity_pub/mrf/simple_policy.ex
  69. +4
    -0
      lib/pleroma/web/activity_pub/mrf/user_allowlist.ex
  70. +4
    -0
      lib/pleroma/web/activity_pub/relay.ex
  71. +4
    -0
      lib/pleroma/web/activity_pub/transmogrifier.ex
  72. +4
    -0
      lib/pleroma/web/activity_pub/utils.ex
  73. +4
    -0
      lib/pleroma/web/activity_pub/views/object_view.ex
  74. +4
    -0
      lib/pleroma/web/activity_pub/views/user_view.ex
  75. +4
    -0
      lib/pleroma/web/admin_api/admin_api_controller.ex
  76. +4
    -0
      lib/pleroma/web/channels/user_socket.ex
  77. +4
    -0
      lib/pleroma/web/chat_channel.ex
  78. +4
    -0
      lib/pleroma/web/common_api/common_api.ex
  79. +4
    -0
      lib/pleroma/web/common_api/utils.ex
  80. +4
    -0
      lib/pleroma/web/controller_helper.ex
  81. +4
    -0
      lib/pleroma/web/endpoint.ex
  82. +4
    -0
      lib/pleroma/web/federator/federator.ex
  83. +4
    -0
      lib/pleroma/web/federator/retry_queue.ex
  84. +4
    -0
      lib/pleroma/web/gettext.ex
  85. +4
    -0
      lib/pleroma/web/http_signatures/http_signatures.ex
  86. +4
    -0
      lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
  87. +4
    -0
      lib/pleroma/web/mastodon_api/views/account_view.ex
  88. +4
    -0
      lib/pleroma/web/mastodon_api/views/filter_view.ex
  89. +4
    -0
      lib/pleroma/web/mastodon_api/views/list_view.ex
  90. +4
    -0
      lib/pleroma/web/mastodon_api/views/mastodon_view.ex
  91. +4
    -0
      lib/pleroma/web/mastodon_api/views/push_subscription_view.ex
  92. +4
    -0
      lib/pleroma/web/mastodon_api/views/status_view.ex
  93. +4
    -0
      lib/pleroma/web/mastodon_api/websocket_handler.ex
  94. +4
    -0
      lib/pleroma/web/media_proxy/controller.ex
  95. +4
    -0
      lib/pleroma/web/media_proxy/media_proxy.ex
  96. +4
    -0
      lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
  97. +4
    -0
      lib/pleroma/web/oauth/app.ex
  98. +4
    -0
      lib/pleroma/web/oauth/authorization.ex
  99. +4
    -0
      lib/pleroma/web/oauth/fallback_controller.ex
  100. +4
    -0
      lib/pleroma/web/oauth/oauth_controller.ex

+ 4
- 0
lib/pleroma/PasswordResetToken.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.PasswordResetToken do
use Ecto.Schema



+ 4
- 0
lib/pleroma/activity.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Activity do
use Ecto.Schema
alias Pleroma.{Repo, Activity, Notification}


+ 4
- 0
lib/pleroma/application.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Application do
use Application
import Supervisor.Spec


+ 4
- 0
lib/pleroma/captcha/captcha.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Captcha do
use GenServer



+ 4
- 0
lib/pleroma/captcha/captcha_service.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Captcha.Service do
@doc """
Request new captcha from a captcha service.


+ 4
- 0
lib/pleroma/captcha/kocaptcha.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Captcha.Kocaptcha do
alias Calendar.DateTime



+ 4
- 0
lib/pleroma/config.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Config do
defmodule Error do
defexception [:message]


+ 4
- 0
lib/pleroma/emails/mailer.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Mailer do
use Swoosh.Mailer, otp_app: :pleroma
end

+ 4
- 0
lib/pleroma/emails/user_email.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.UserEmail do
@moduledoc "User emails"



+ 4
- 0
lib/pleroma/emoji.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Emoji do
@moduledoc """
The emojis are loaded from:


+ 4
- 0
lib/pleroma/filter.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Filter do
use Ecto.Schema
import Ecto.{Changeset, Query}


+ 4
- 0
lib/pleroma/formatter.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Formatter do
alias Pleroma.User
alias Pleroma.Web.MediaProxy


+ 4
- 0
lib/pleroma/gopher/server.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Gopher.Server do
use GenServer
require Logger


+ 4
- 0
lib/pleroma/html.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTML do
alias HtmlSanitizeEx.Scrubber



+ 4
- 0
lib/pleroma/http/connection.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTTP.Connection do
@moduledoc """
Connection for http-requests.


+ 4
- 0
lib/pleroma/http/http.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTTP do
@moduledoc """



+ 4
- 0
lib/pleroma/http/request_builder.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTTP.RequestBuilder do
@moduledoc """
Helper functions for building Tesla requests


+ 4
- 0
lib/pleroma/list.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.List do
use Ecto.Schema
import Ecto.{Changeset, Query}


+ 4
- 0
lib/pleroma/mime.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.MIME do
@moduledoc """
Returns the mime-type of a binary and optionally a normalized file-name.


+ 4
- 0
lib/pleroma/notification.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Notification do
use Ecto.Schema
alias Pleroma.{User, Activity, Notification, Repo, Object}


+ 4
- 0
lib/pleroma/object.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Object do
use Ecto.Schema
alias Pleroma.{Repo, Object, User, Activity}


+ 4
- 0
lib/pleroma/plugs/admin_secret_authentication_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.AdminSecretAuthenticationPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/plugs/authentication_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.AuthenticationPlug do
alias Comeonin.Pbkdf2
import Plug.Conn


+ 4
- 0
lib/pleroma/plugs/basic_auth_decoder_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.BasicAuthDecoderPlug do
import Plug.Conn



+ 4
- 0
lib/pleroma/plugs/digest.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Plugs.DigestPlug do
alias Plug.Conn
require Logger


+ 4
- 0
lib/pleroma/plugs/ensure_authenticated_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.EnsureAuthenticatedPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/plugs/ensure_user_key_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.EnsureUserKeyPlug do
import Plug.Conn



+ 4
- 0
lib/pleroma/plugs/federating_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.FederatingPlug do
import Plug.Conn



+ 4
- 0
lib/pleroma/plugs/http_security_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.HTTPSecurityPlug do
alias Pleroma.Config
import Plug.Conn


+ 4
- 0
lib/pleroma/plugs/http_signature.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
alias Pleroma.Web.HTTPSignatures
alias Pleroma.Web.ActivityPub.Utils


+ 4
- 0
lib/pleroma/plugs/instance_static.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.InstanceStatic do
@moduledoc """
This is a shim to call `Plug.Static` but with runtime `from` configuration.


+ 4
- 0
lib/pleroma/plugs/legacy_authentication_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.LegacyAuthenticationPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/plugs/oauth_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.OAuthPlug do
import Plug.Conn
import Ecto.Query


+ 4
- 0
lib/pleroma/plugs/session_authentication_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.SessionAuthenticationPlug do
import Plug.Conn



+ 4
- 0
lib/pleroma/plugs/set_user_session_id_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.SetUserSessionIdPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/plugs/uploaded_media.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UploadedMedia do
@moduledoc """
"""


+ 4
- 0
lib/pleroma/plugs/user_enabled_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserEnabledPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/plugs/user_fetcher_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserFetcherPlug do
import Plug.Conn
alias Pleroma.Repo


+ 4
- 0
lib/pleroma/plugs/user_is_admin_plug.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserIsAdminPlug do
import Plug.Conn
alias Pleroma.User


+ 4
- 0
lib/pleroma/repo.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Repo do
use Ecto.Repo, otp_app: :pleroma



+ 4
- 0
lib/pleroma/reverse_proxy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ReverseProxy do
@keep_req_headers ~w(accept user-agent accept-encoding cache-control if-modified-since if-unmodified-since if-none-match if-range range)
@resp_cache_headers ~w(etag date last-modified cache-control)


+ 4
- 0
lib/pleroma/stats.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Stats do
import Ecto.Query
alias Pleroma.{User, Repo}


+ 4
- 0
lib/pleroma/upload.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload do
@moduledoc """
# Upload


+ 4
- 0
lib/pleroma/upload/filter.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload.Filter do
@moduledoc """
Upload Filter behaviour


+ 4
- 0
lib/pleroma/upload/filter/anonymize_filename.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload.Filter.AnonymizeFilename do
@moduledoc """
Replaces the original filename with a pre-defined text or randomly generated string.


+ 4
- 0
lib/pleroma/upload/filter/dedupe.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload.Filter.Dedupe do
@behaviour Pleroma.Upload.Filter
alias Pleroma.Upload


+ 4
- 0
lib/pleroma/upload/filter/mogrifun.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload.Filter.Mogrifun do
@behaviour Pleroma.Upload.Filter



+ 4
- 0
lib/pleroma/upload/filter/mogrify.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Upload.Filter.Mogrify do
@behaviour Pleroma.Upload.Filter



+ 4
- 0
lib/pleroma/uploaders/local.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.Local do
@behaviour Pleroma.Uploaders.Uploader



+ 4
- 0
lib/pleroma/uploaders/mdii.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.MDII do
alias Pleroma.Config



+ 4
- 0
lib/pleroma/uploaders/s3.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.S3 do
@behaviour Pleroma.Uploaders.Uploader
require Logger


+ 4
- 0
lib/pleroma/uploaders/swift/keystone.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.Swift.Keystone do
use HTTPoison.Base



+ 4
- 0
lib/pleroma/uploaders/swift/swift.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.Swift.Client do
use HTTPoison.Base



+ 4
- 0
lib/pleroma/uploaders/swift/uploader.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.Swift do
@behaviour Pleroma.Uploaders.Uploader



+ 4
- 0
lib/pleroma/uploaders/uploader.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Uploaders.Uploader do
@moduledoc """
Defines the contract to put and get an uploaded file to any backend.


+ 4
- 0
lib/pleroma/user.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.User do
use Ecto.Schema



+ 4
- 0
lib/pleroma/user/info.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.User.Info do
use Ecto.Schema
import Ecto.Changeset


+ 4
- 0
lib/pleroma/user_invite_token.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.UserInviteToken do
use Ecto.Schema



+ 4
- 0
lib/pleroma/web/activity_pub/activity_pub.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.ActivityPub do
alias Pleroma.{Activity, Repo, Object, Upload, User, Notification}
alias Pleroma.Web.ActivityPub.{Transmogrifier, MRF}


+ 4
- 0
lib/pleroma/web/activity_pub/activity_pub_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.ActivityPubController do
use Pleroma.Web, :controller
alias Pleroma.{User, Object}


+ 4
- 0
lib/pleroma/web/activity_pub/mrf.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF do
@callback filter(Map.t()) :: {:ok | :reject, Map.t()}



+ 4
- 0
lib/pleroma/web/activity_pub/mrf/drop_policy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
require Logger
@behaviour Pleroma.Web.ActivityPub.MRF


+ 4
- 0
lib/pleroma/web/activity_pub/mrf/ensure_re_prepended.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.EnsureRePrepended do
alias Pleroma.Object



+ 4
- 0
lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
@behaviour Pleroma.Web.ActivityPub.MRF



+ 4
- 0
lib/pleroma/web/activity_pub/mrf/noop_policy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.NoOpPolicy do
@behaviour Pleroma.Web.ActivityPub.MRF



+ 4
- 0
lib/pleroma/web/activity_pub/mrf/normalize_markup.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkup do
alias Pleroma.HTML



+ 4
- 0
lib/pleroma/web/activity_pub/mrf/reject_non_public.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublic do
alias Pleroma.User
@behaviour Pleroma.Web.ActivityPub.MRF


+ 4
- 0
lib/pleroma/web/activity_pub/mrf/simple_policy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
alias Pleroma.User
@behaviour Pleroma.Web.ActivityPub.MRF


+ 4
- 0
lib/pleroma/web/activity_pub/mrf/user_allowlist.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.MRF.UserAllowListPolicy do
alias Pleroma.Config



+ 4
- 0
lib/pleroma/web/activity_pub/relay.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.Relay do
alias Pleroma.{User, Object, Activity}
alias Pleroma.Web.ActivityPub.ActivityPub


+ 4
- 0
lib/pleroma/web/activity_pub/transmogrifier.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.Transmogrifier do
@moduledoc """
A module to handle coding from internal to wire ActivityPub and back.


+ 4
- 0
lib/pleroma/web/activity_pub/utils.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.Utils do
alias Pleroma.{Repo, Web, Object, Activity, User, Notification}
alias Pleroma.Web.Router.Helpers


+ 4
- 0
lib/pleroma/web/activity_pub/views/object_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.ObjectView do
use Pleroma.Web, :view
alias Pleroma.{Object, Activity}


+ 4
- 0
lib/pleroma/web/activity_pub/views/user_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.UserView do
use Pleroma.Web, :view
alias Pleroma.Web.Salmon


+ 4
- 0
lib/pleroma/web/admin_api/admin_api_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.AdminAPI.AdminAPIController do
use Pleroma.Web, :controller
alias Pleroma.User


+ 4
- 0
lib/pleroma/web/channels/user_socket.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.UserSocket do
use Phoenix.Socket
alias Pleroma.User


+ 4
- 0
lib/pleroma/web/chat_channel.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ChatChannel do
use Phoenix.Channel
alias Pleroma.Web.ChatChannel.ChatChannelState


+ 4
- 0
lib/pleroma/web/common_api/common_api.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.CommonAPI do
alias Pleroma.{User, Repo, Activity, Object}
alias Pleroma.Web.ActivityPub.ActivityPub


+ 4
- 0
lib/pleroma/web/common_api/utils.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.CommonAPI.Utils do
alias Calendar.Strftime
alias Comeonin.Pbkdf2


+ 4
- 0
lib/pleroma/web/controller_helper.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ControllerHelper do
use Pleroma.Web, :controller



+ 4
- 0
lib/pleroma/web/endpoint.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Endpoint do
use Phoenix.Endpoint, otp_app: :pleroma



+ 4
- 0
lib/pleroma/web/federator/federator.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Federator do
use GenServer
alias Pleroma.User


+ 4
- 0
lib/pleroma/web/federator/retry_queue.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Federator.RetryQueue do
use GenServer



+ 4
- 0
lib/pleroma/web/gettext.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Gettext do
@moduledoc """
A module providing Internationalization with a gettext-based API.


+ 4
- 0
lib/pleroma/web/http_signatures/http_signatures.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

# https://tools.ietf.org/html/draft-cavage-http-signatures-08
defmodule Pleroma.Web.HTTPSignatures do
alias Pleroma.User


+ 4
- 0
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
use Pleroma.Web, :controller
alias Pleroma.{Repo, Object, Activity, User, Notification, Stats}


+ 4
- 0
lib/pleroma/web/mastodon_api/views/account_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.AccountView do
use Pleroma.Web, :view
alias Pleroma.User


+ 4
- 0
lib/pleroma/web/mastodon_api/views/filter_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.FilterView do
use Pleroma.Web, :view
alias Pleroma.Web.MastodonAPI.FilterView


+ 4
- 0
lib/pleroma/web/mastodon_api/views/list_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.ListView do
use Pleroma.Web, :view
alias Pleroma.Web.MastodonAPI.ListView


+ 4
- 0
lib/pleroma/web/mastodon_api/views/mastodon_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.MastodonView do
use Pleroma.Web, :view
import Phoenix.HTML


+ 4
- 0
lib/pleroma/web/mastodon_api/views/push_subscription_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.PushSubscriptionView do
use Pleroma.Web, :view



+ 4
- 0
lib/pleroma/web/mastodon_api/views/status_view.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.StatusView do
use Pleroma.Web, :view



+ 4
- 0
lib/pleroma/web/mastodon_api/websocket_handler.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.WebsocketHandler do
require Logger



+ 4
- 0
lib/pleroma/web/media_proxy/controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MediaProxy.MediaProxyController do
use Pleroma.Web, :controller
alias Pleroma.{Web.MediaProxy, ReverseProxy}


+ 4
- 0
lib/pleroma/web/media_proxy/media_proxy.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MediaProxy do
@base64_opts [padding: false]



+ 4
- 0
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
use Pleroma.Web, :controller



+ 4
- 0
lib/pleroma/web/oauth/app.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.App do
use Ecto.Schema
import Ecto.{Changeset}


+ 4
- 0
lib/pleroma/web/oauth/authorization.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.Authorization do
use Ecto.Schema



+ 4
- 0
lib/pleroma/web/oauth/fallback_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.FallbackController do
use Pleroma.Web, :controller
alias Pleroma.Web.OAuth.OAuthController


+ 4
- 0
lib/pleroma/web/oauth/oauth_controller.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.OAuthController do
use Pleroma.Web, :controller



Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save