We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4134422 commit e283689Copy full SHA for e283689
app/mailers/report_mailer.rb
@@ -7,6 +7,10 @@ def report_content
7
@reported_content = params.fetch(:reported_content)
8
study_group = @reported_content.submission.study_group
9
exercise = @reported_content.exercise
10
+
11
+ # NOTE: This implementation assumes the curse URL is static and does not vary per user.
12
+ # This is currently valid for all known use cases. However, in dynamic environments—such as
13
+ # advanced content trees in openHPI or A/B/n testing—this assumption may break.
14
@course_url = LtiParameter.find_by(study_group:, exercise:)&.lti_parameters&.[]('launch_presentation_return_url')
15
16
mail(subject: I18n.t('report_mailer.report_content.subject', content_name: @reported_content.model_name.human))
0 commit comments