Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/831
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Jan 25, 2024
1 parent 8f02100 commit f32e37c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions flavours/classic/config/bonfire_data.exs
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,12 @@ config :bonfire_data_social, Boost,
(unquote_splicing(edges))
end)

config :bonfire_label, Bonfire.Label,
code:
(quote do
(unquote_splicing(edges))
end)

# has_one: [activity: {Activity, foreign_key: :object_id, references: :boosted_id}] # requires an ON clause

config :bonfire_data_social, Like,
Expand Down
2 changes: 1 addition & 1 deletion flavours/classic/config/bonfire_ui.exs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ More details at https://bonfirenetworks.org",
# post: Bonfire.UI.Social.WritePostContentLive,
# message: Bonfire.UI.Social.WritePostContentLive,
# category: Bonfire.Classify.Web.NewCategoryLive,
# label: Bonfire.Classify.Web.NewLabelLive,
# label: Bonfire.Label.Web.NewLabelLive,
# page: Bonfire.Pages.Web.CreatePageLive,
# section: Bonfire.Pages.Web.EditSectionLive
# ],
Expand Down
13 changes: 13 additions & 0 deletions flavours/classic/repo/migrations/20240121084501_label.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defmodule Bonfire.Repo.Migrations.Label do
@moduledoc false
use Ecto.Migration
require Bonfire.Label.Migration

def up do
Bonfire.Label.Migration.migrate_label()
end

def down do
Bonfire.Label.Migration.migrate_label()
end
end

0 comments on commit f32e37c

Please sign in to comment.