Compare commits

...

76 commits

Author SHA1 Message Date
1fb9928b66 version
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-05 09:52:50 +01:00
5b455dc56e Change bio limit from 500 > 1000 2024-12-05 09:52:13 +01:00
b2d2e10dc5 Merge commit '836810e88b0b54721079cb579aa0b63fdf80bfab' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-03 15:34:28 +01:00
641f9983d7 ver
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-07 19:14:22 +02:00
52d87ffb2b Merge commit '03210085b7481568cc507f088144aaf1dae73c88' into bark-prod 2024-10-07 19:13:50 +02:00
bc9fd6c019 Merge commit '513f187dafd8ff441479a6de12c61f8bb8d4c5bf' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-09-27 10:20:27 +02:00
a85b8f193c ver
All checks were successful
continuous-integration/drone/push Build is passing
2024-08-30 09:49:37 +02:00
5ced66d73a Merge commit '97f6baf977212e84125ac325176ad305ad5b068a' into bark-prod
Some checks reported errors
continuous-integration/drone/push Build was killed
2024-08-30 09:45:35 +02:00
f2d75c86fb sha1
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-17 14:18:36 +02:00
4d5c53d9c0 Merge commit 'ad52b04a1c88574ae3be2c56bead1b0638b253fc' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-17 10:04:01 +02:00
6f29aea2fa Merge commit 'df9e26158d9787859b24bdc276af478abf05e1af' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-07 11:12:47 +02:00
bcd953822f Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-19 10:37:21 +02:00
c1c0670a04 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-19 10:02:05 +02:00
6f73d7eedd Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-15 18:21:04 +02:00
f64f159c17 Merge commit '7f808ff6e9148f1cfe1e16d000e2405b6e31f243' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-03 10:37:00 +02:00
0552eda5d9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-03 09:52:08 +02:00
e19315b0cd Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-30 13:10:44 +02:00
eae50b2cb3 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-21 11:19:43 +02:00
5beb356718 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-05-01 13:57:16 +02:00
d6433a9aff Merge commit '65093c619fdd1b18a4cf0c288051d8c524d5f434' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-29 14:57:12 +02:00
14db7f1a05 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-29 09:50:14 +02:00
065aa1a32c Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-26 13:39:14 +02:00
61c71f9c5b Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-26 13:26:00 +02:00
12ef898447 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-23 13:55:48 +02:00
3b11f173b3 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-22 09:59:07 +02:00
61cd0f81b5 max fields
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-17 16:55:18 +02:00
8c9764a026 Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-25 12:10:15 +01:00
32414a51e9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-25 11:42:07 +01:00
95a990fb6d Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-19 13:41:44 +01:00
ffae506e12 Merge remote-tracking branch 'upstream/main'
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
2024-03-15 11:06:28 +01:00
2ed4a45528 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-12 13:34:44 +01:00
2cc89b04b4 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-04 13:53:47 +01:00
1394f50968 Merge commit '5f21a1f5a3492a212a25235086e620799d47f1c9' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-17 13:28:47 +01:00
6cb18320c0 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-17 13:01:40 +01:00
ff5beb6a60 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-12 08:46:58 +01:00
757da79182 Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-06 14:53:05 +01:00
815809a6a2 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-06 14:30:04 +01:00
7ca67830a7 Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-01 20:34:52 +01:00
4d23759cf7 Merge remote-tracking branch 'upstream/main'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is passing
2024-02-01 19:35:09 +01:00
ed4a0bba04 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-31 10:02:26 +01:00
d5769ec3e9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-24 10:52:32 +01:00
19c61afd99 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-18 10:22:32 +01:00
ee9d63a7a1 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-17 11:25:25 +01:00
29523f518b Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-16 13:14:39 +01:00
9b8fc472b5 add pets svg
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-16 10:07:00 +01:00
12bfa9781b Merge remote-tracking branch 'upstream/main'
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-16 09:47:16 +01:00
373f1871b9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-28 11:26:44 +01:00
f3fefa3dea Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-20 10:29:58 +01:00
130ae637e7 Merge branch 'main' into bark-prod
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-19 13:39:59 +01:00
9c31391cb9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-19 13:10:05 +01:00
6b71734b73 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-18 14:47:49 +01:00
63a70ea1f1 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2023-12-17 14:40:41 +01:00
01cc46170e trending score half-life to 2 hours
All checks were successful
continuous-integration/drone Build is passing
2023-12-15 22:38:29 +01:00
63cdb40dce Merge commit 'f3864db4090b8cec212fb99c3dabccfb6a6c7642' into bark-prod
All checks were successful
continuous-integration/drone Build is passing
2023-12-11 19:13:06 +01:00
7e5ed46553 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-12-11 17:06:55 +01:00
5082246ee5 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-12-03 11:19:50 +01:00
3dd4a94c57 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-12-01 10:57:58 +01:00
2656e00d74 update ci
All checks were successful
continuous-integration/drone Build is passing
2023-11-30 12:14:24 +01:00
91a78e0652 Merge remote-tracking branch 'upstream/main' 2023-11-30 12:12:59 +01:00
03fdbfe11a Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-11-24 13:23:08 +01:00
b3377b7883 trending score half-life to 2 hours 2023-11-19 02:53:34 +01:00
2c4f8b71cb Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-11-19 02:41:47 +01:00
7586c4c6f9 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-11-10 22:09:54 +01:00
d2dd0d5e15 version
All checks were successful
continuous-integration/drone Build is passing
2023-11-10 13:30:48 +01:00
d3ae974767 version
All checks were successful
continuous-integration/drone Build is passing
2023-11-10 13:29:55 +01:00
c07ddbe7b1 Merge remote-tracking branch 'upstream/main'
All checks were successful
continuous-integration/drone Build is passing
2023-11-10 00:29:32 +01:00
05855361cb revert ba7703207c
All checks were successful
continuous-integration/drone Build is passing
revert new dockerfile
2023-11-09 23:17:05 +01:00
0b20085f0e Merge pull request 'new dockerfile' (#1) from dockerfile-rewrite into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #1
2023-11-09 22:29:42 +01:00
ba7703207c new dockerfile 2023-11-09 22:28:33 +01:00
4c6fcd3452 version
All checks were successful
continuous-integration/drone Build is passing
2023-11-09 21:58:00 +01:00
f39c791bbd s3 retries 2023-11-09 21:55:34 +01:00
bb10a911b5 update check cron 2023-11-09 21:54:16 +01:00
d126d231c7 footer 2023-11-09 21:53:50 +01:00
fb94cd866a drone
All checks were successful
continuous-integration/drone Build is passing
2023-11-09 21:47:38 +01:00
bcbdfc19fd max post chars and profile fields 2023-11-09 21:45:08 +01:00
f3309786f8 furry tab 2023-11-09 21:41:45 +01:00
10 changed files with 61 additions and 17 deletions

33
.drone.yml Normal file
View file

@ -0,0 +1,33 @@
kind: pipeline
name: mastodon
type: kubernetes
steps:
- name: build-mastodon
image: plugins/docker
environment:
DOCKER_BUILDKIT: 1
settings:
registry: git.greyfox.tech
username:
from_secret: registry_user
password:
from_secret: registry_pass
repo: git.greyfox.tech/bark/mastodon
dockerfile: Dockerfile
tags:
- prod
- name: build-streaming
image: plugins/docker
environment:
DOCKER_BUILDKIT: 1
settings:
registry: git.greyfox.tech
username:
from_secret: registry_user
password:
from_secret: registry_pass
repo: git.greyfox.tech/bark/mastodon-streaming
dockerfile: streaming/Dockerfile
tags:
- prod

View file

@ -26,13 +26,13 @@ FROM docker.io/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS ruby
# Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA # Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA
# Example: v4.3.0-nightly.2023.11.09+pr-123456 # Example: v4.3.0-nightly.2023.11.09+pr-123456
# Overwrite existence of 'alpha.X' in version.rb [--build-arg MASTODON_VERSION_PRERELEASE="nightly.2023.11.09"] # Overwrite existence of 'alpha.X' in version.rb [--build-arg MASTODON_VERSION_PRERELEASE="nightly.2023.11.09"]
ARG MASTODON_VERSION_PRERELEASE="" ARG MASTODON_VERSION_PRERELEASE="bark"
# Append build metadata or fork information to version.rb [--build-arg MASTODON_VERSION_METADATA="pr-123456"] # Append build metadata or fork information to version.rb [--build-arg MASTODON_VERSION_METADATA="pr-123456"]
ARG MASTODON_VERSION_METADATA="" ARG MASTODON_VERSION_METADATA="05-12-2024"
# Will be available as Mastodon::Version.source_commit # Will be available as Mastodon::Version.source_commit
ARG SOURCE_COMMIT="" ARG SOURCE_COMMIT=""
# Allow Ruby on Rails to serve static files # Allow Ruby on Rails to serve statiprodc files
# See: https://docs.joinmastodon.org/admin/config/#rails_serve_static_files # See: https://docs.joinmastodon.org/admin/config/#rails_serve_static_files
ARG RAILS_SERVE_STATIC_FILES="true" ARG RAILS_SERVE_STATIC_FILES="true"
# Allow to use YJIT compiler # Allow to use YJIT compiler

View file

@ -74,14 +74,19 @@ class LinkFooter extends PureComponent {
</p> </p>
<p> <p>
<strong>Mastodon</strong>: <strong>Bark services</strong>:
{' '} {' '}
<a href='https://joinmastodon.org' target='_blank'><FormattedMessage id='footer.about' defaultMessage='About' /></a> {statusPageUrl && (
{DividingCircle} <>
<a href='https://joinmastodon.org/apps' target='_blank'><FormattedMessage id='footer.get_app' defaultMessage='Get the app' /></a>
{DividingCircle}
<Link to='/keyboard-shortcuts'><FormattedMessage id='footer.keyboard_shortcuts' defaultMessage='Keyboard shortcuts' /></Link>
{DividingCircle} {DividingCircle}
<a href={statusPageUrl} target='_blank' rel='noopener'><FormattedMessage id='footer.status' defaultMessage='Status' /></a>
</>
)}
{' · '}
<a href='https://chat.bark.lgbt' target='_blank'><FormattedMessage id='footer.matrix' defaultMessage='Matrix' /></a>
{' · '}
<a href='https://bark.video' target='_blank'><FormattedMessage id='footer.peertube' defaultMessage='Peertube' /></a>
{' · '}
<a href={source_url} rel='noopener noreferrer' target='_blank'><FormattedMessage id='footer.source_code' defaultMessage='View source code' /></a> <a href={source_url} rel='noopener noreferrer' target='_blank'><FormattedMessage id='footer.source_code' defaultMessage='View source code' /></a>
{DividingCircle} {DividingCircle}
<span className='version'>v{version}</span> <span className='version'>v{version}</span>

View file

@ -28,6 +28,7 @@ import SearchIcon from '@/material-icons/400-24px/search.svg?react';
import SettingsIcon from '@/material-icons/400-24px/settings.svg?react'; import SettingsIcon from '@/material-icons/400-24px/settings.svg?react';
import StarActiveIcon from '@/material-icons/400-24px/star-fill.svg?react'; import StarActiveIcon from '@/material-icons/400-24px/star-fill.svg?react';
import StarIcon from '@/material-icons/400-24px/star.svg?react'; import StarIcon from '@/material-icons/400-24px/star.svg?react';
import FurryIcon from '@/material-icons/400-24px/pets.svg?react';
import { fetchFollowRequests } from 'mastodon/actions/accounts'; import { fetchFollowRequests } from 'mastodon/actions/accounts';
import { IconWithBadge } from 'mastodon/components/icon_with_badge'; import { IconWithBadge } from 'mastodon/components/icon_with_badge';
import { WordmarkLogo } from 'mastodon/components/logo'; import { WordmarkLogo } from 'mastodon/components/logo';
@ -48,6 +49,7 @@ const messages = defineMessages({
notifications: { id: 'tabs_bar.notifications', defaultMessage: 'Notifications' }, notifications: { id: 'tabs_bar.notifications', defaultMessage: 'Notifications' },
explore: { id: 'explore.title', defaultMessage: 'Explore' }, explore: { id: 'explore.title', defaultMessage: 'Explore' },
firehose: { id: 'column.firehose', defaultMessage: 'Live feeds' }, firehose: { id: 'column.firehose', defaultMessage: 'Live feeds' },
furry: { id: 'tabs_bar.furry', defaultMessage: 'Furry' },
direct: { id: 'navigation_bar.direct', defaultMessage: 'Private mentions' }, direct: { id: 'navigation_bar.direct', defaultMessage: 'Private mentions' },
favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favorites' }, favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favorites' },
bookmarks: { id: 'navigation_bar.bookmarks', defaultMessage: 'Bookmarks' }, bookmarks: { id: 'navigation_bar.bookmarks', defaultMessage: 'Bookmarks' },
@ -160,7 +162,10 @@ class NavigationPanel extends Component {
)} )}
{(signedIn || timelinePreview) && ( {(signedIn || timelinePreview) && (
<>
<ColumnLink transparent to='/public/local' isActive={this.isFirehoseActive} icon='globe' iconComponent={PublicIcon} text={intl.formatMessage(messages.firehose)} /> <ColumnLink transparent to='/public/local' isActive={this.isFirehoseActive} icon='globe' iconComponent={PublicIcon} text={intl.formatMessage(messages.firehose)} />
<ColumnLink transparent to='/tags/furry' icon='pets' iconComponent={FurryIcon} text={intl.formatMessage(messages.furry)} />
</>
)} )}
{!signedIn && ( {!signedIn && (

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M180-475q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Zm180-160q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Zm240 0q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Zm180 160q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM266-75q-45 0-75.5-34.5T160-191q0-52 35.5-91t70.5-77q29-31 50-67.5t50-68.5q22-26 51-43t63-17q34 0 63 16t51 42q28 32 49.5 69t50.5 69q35 38 70.5 77t35.5 91q0 47-30.5 81.5T694-75q-54 0-107-9t-107-9q-54 0-107 9t-107 9Z"/></svg>

After

Width:  |  Height:  |  Size: 638 B

View file

@ -67,7 +67,7 @@ class Account < ApplicationRecord
BACKGROUND_REFRESH_INTERVAL = 1.week.freeze BACKGROUND_REFRESH_INTERVAL = 1.week.freeze
REFRESH_DEADLINE = 6.hours REFRESH_DEADLINE = 6.hours
STALE_THRESHOLD = 1.day STALE_THRESHOLD = 1.day
DEFAULT_FIELDS_SIZE = 4 DEFAULT_FIELDS_SIZE = 8
INSTANCE_ACTOR_ID = -99 INSTANCE_ACTOR_ID = -99
USERNAME_RE = /[a-z0-9_]+([.-]+[a-z0-9_]+)*/i USERNAME_RE = /[a-z0-9_]+([.-]+[a-z0-9_]+)*/i
@ -76,7 +76,7 @@ class Account < ApplicationRecord
USERNAME_ONLY_RE = /\A#{USERNAME_RE}\z/i USERNAME_ONLY_RE = /\A#{USERNAME_RE}\z/i
USERNAME_LENGTH_LIMIT = 30 USERNAME_LENGTH_LIMIT = 30
DISPLAY_NAME_LENGTH_LIMIT = 30 DISPLAY_NAME_LENGTH_LIMIT = 30
NOTE_LENGTH_LIMIT = 500 NOTE_LENGTH_LIMIT = 1000
AUTOMATED_ACTOR_TYPES = %w(Application Service).freeze AUTOMATED_ACTOR_TYPES = %w(Application Service).freeze

View file

@ -8,7 +8,7 @@ class Trends::Statuses < Trends::Base
self.default_options = { self.default_options = {
threshold: 5, threshold: 5,
review_threshold: 3, review_threshold: 3,
score_halflife: 1.hour.freeze, score_halflife: 2.hours.freeze,
decay_threshold: 0.3, decay_threshold: 0.3,
} }

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
class StatusLengthValidator < ActiveModel::Validator class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = 500 MAX_CHARS = 1000
URL_PLACEHOLDER_CHARS = 23 URL_PLACEHOLDER_CHARS = 23
URL_PLACEHOLDER = 'x' * 23 URL_PLACEHOLDER = 'x' * 23

View file

@ -60,7 +60,7 @@
class: Scheduler::SuspendedUserCleanupScheduler class: Scheduler::SuspendedUserCleanupScheduler
queue: scheduler queue: scheduler
software_update_check_scheduler: software_update_check_scheduler:
interval: 30 minutes interval: 60 minutes
class: Scheduler::SoftwareUpdateCheckScheduler class: Scheduler::SoftwareUpdateCheckScheduler
queue: scheduler queue: scheduler
auto_close_registrations_scheduler: auto_close_registrations_scheduler:

View file

@ -50,11 +50,11 @@ module Mastodon
end end
def repository def repository
ENV.fetch('GITHUB_REPOSITORY', 'mastodon/mastodon') ENV.fetch('GITHUB_REPOSITORY', 'bark/mastodon')
end end
def source_base_url def source_base_url
ENV.fetch('SOURCE_BASE_URL', "https://github.com/#{repository}") ENV.fetch('SOURCE_BASE_URL', "https://git.greyfox.tech/#{repository}")
end end
# specify git tag or commit hash here # specify git tag or commit hash here