Skip to content

Commit

Permalink
feat: hook linkedin create post on til create post
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Vogel <[email protected]>
Co-authored-by: Jack Rosa <[email protected]>
Co-authored-by: Vinicius Negrisolo <[email protected]>
  • Loading branch information
4 people committed Feb 10, 2023
1 parent fe85c96 commit 5d21d7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ config :tilex, :page_size, 5
config :tilex, :auth_controller, AuthController
config :tilex, :slack_notifier, Tilex.Notifications.Notifiers.Slack
config :tilex, :twitter_notifier, Tilex.Notifications.Notifiers.Twitter
config :tilex, :linkedin_notifier, Tilex.Notifications.Notifiers.Linkedin
config :tilex, :organization_name, System.get_env("ORGANIZATION_NAME")
config :tilex, :canonical_domain, System.get_env("CANONICAL_DOMAIN")
config :tilex, :default_twitter_handle, System.get_env("DEFAULT_TWITTER_HANDLE")
Expand Down
1 change: 1 addition & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ config :tilex, :hosted_domain, "hashrocket.com"
config :tilex, :auth_controller, Test.AuthController
config :tilex, :slack_notifier, Test.Notifications.Notifiers.Slack
config :tilex, :twitter_notifier, Test.Notifications.Notifiers.Twitter
config :tilex, :linkedin_notifier, Test.Notifications.Notifiers.Linkedin
config :tilex, :date_time_module, Tilex.DateTimeMock
config :tilex, :date_display_tz, "America/Chicago"
config :tilex, :slack_endpoint, "https://slack.test.com/abc/123"
Expand Down
4 changes: 3 additions & 1 deletion lib/tilex/notifications/notifiers_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ defmodule Tilex.Notifications.NotifiersSupervisor do
def children do
[
slack_notifier(),
twitter_notifier()
twitter_notifier(),
linkedin_notifier()
]
end

defp slack_notifier, do: Application.get_env(:tilex, :slack_notifier)
defp twitter_notifier, do: Application.get_env(:tilex, :twitter_notifier)
defp linkedin_notifier, do: Application.get_env(:tilex, :linkedin_notifier)
end

0 comments on commit 5d21d7b

Please sign in to comment.