2026-02-20 10:30:12 +01:00
|
|
|
class HomeController < ApplicationController
|
|
|
|
|
allow_unauthenticated_access
|
|
|
|
|
|
|
|
|
|
def index
|
2026-02-26 17:17:39 +01:00
|
|
|
@user = User.find_by(username: request.subdomain)
|
|
|
|
|
if @user&.public?
|
2026-09-29 07:35:53 +02:00
|
|
|
render "moods/public"
|
2026-02-20 10:30:12 +01:00
|
|
|
else
|
|
|
|
|
redirect_to dashboard_path
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|