Skip to content

Commit 665f166

Browse files
committed
fix: allow multi-verse tafsirs in verses API
This commit fixes the issue where multi-verse tafsirs (such as ID 169) were not being returned by the /verses endpoint. Key change: - Remove the `one_verse` constraint from the verses presenter, allowing the endpoint to include tafsirs that span multiple verses. This change enables tafsir resources like Ibn Kathir (ID 169) to be properly included in API responses.
1 parent 1cfc5ef commit 665f166

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/presenters/verses_presenter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ def fetch_tafsirs
261261
approved_tafsirs = ResourceContent
262262
.approved
263263
.tafsirs
264-
.one_verse
265264
.allowed_to_share
266265

267266
params[:tafsirs] = approved_tafsirs

0 commit comments

Comments
 (0)