Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `README.md`:
  Minor upstream change, our README is completely different.
  Kept ours.
- `lib/tasks/assets.rake`:
  glitch-soc has extra code to deal with its theming system,
  upstream changed a line that exists in glitch-soc.
  Applied upstream changes.
This commit is contained in:
Claire
2023-02-09 12:46:12 +01:00
216 changed files with 767 additions and 324 deletions

View File

@@ -87,8 +87,8 @@ class Trends::History
end
def each(&block)
if block_given?
(0...7).map { |i| block.call(get(i.days.ago)) }
if block
(0...7).map { |i| yield(get(i.days.ago)) }
else
to_enum(:each)
end